Should restore to the root fiber for each interaction; fix #3537

parent 7f37c2fc
...@@ -551,6 +551,8 @@ done: ...@@ -551,6 +551,8 @@ done:
mrb_top_self(mrb), mrb_top_self(mrb),
stack_keep); stack_keep);
stack_keep = proc->body.irep->nlocals; stack_keep = proc->body.irep->nlocals;
/* restore to fiber */
mrb->c = mrb->root_c;
/* did an exception occur? */ /* did an exception occur? */
if (mrb->exc) { if (mrb->exc) {
p(mrb, mrb_obj_value(mrb->exc), 0); p(mrb, mrb_obj_value(mrb->exc), 0);
......
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