restore context status to RUNNING on automatic yield at the end of the block; fix #1555

parent abe6db94
......@@ -1334,6 +1334,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
/* automatic yield at the end */
mrb->c->status = MRB_FIBER_TERMINATED;
mrb->c = mrb->c->prev;
mrb->c->status = MRB_FIBER_RUNNING;
}
ci = mrb->c->ci;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment