summaryrefslogtreecommitdiff
path: root/libcr
diff options
context:
space:
mode:
Diffstat (limited to 'libcr')
-rw-r--r--libcr/coroutine.c1
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);
}