diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-31 11:54:57 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-31 11:54:57 +0900 |
| commit | a228841668dcd5c4fcb728539fd1b2c556dfcebb (patch) | |
| tree | ee8c5a462027b6665467c7b8325463dac0483bff /src | |
| parent | abe6db945491105ac265884990b73af0a073d16d (diff) | |
| download | mruby-a228841668dcd5c4fcb728539fd1b2c556dfcebb.tar.gz mruby-a228841668dcd5c4fcb728539fd1b2c556dfcebb.zip | |
restore context status to RUNNING on automatic yield at the end of the block; fix #1555
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
