diff options
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r-- | libcr/coroutine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c index c6eeb43..39df3d5 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -676,6 +676,7 @@ void coroutine_main(void) { coroutine_table[coroutine_running-1] = (struct coroutine){0}; coroutine_cnt--; } + coroutine_running = 0; cr_restore_interrupts(saved); } |