From a228841668dcd5c4fcb728539fd1b2c556dfcebb Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 31 Oct 2013 11:54:57 +0900 Subject: restore context status to RUNNING on automatic yield at the end of the block; fix #1555 --- src/vm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vm.c b/src/vm.c index 155c31391..1099db8a1 100644 --- a/src/vm.c +++ b/src/vm.c @@ -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; -- cgit v1.2.3