Browse Source

reset recursing flag before resuming

Aidan Lee 5 months ago
parent
commit
160771013c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/haxe/coro/BaseContinuation.hx

+ 2 - 0
std/haxe/coro/BaseContinuation.hx

@@ -30,6 +30,8 @@ abstract class BaseContinuation implements IContinuation<Any> {
         _hx_context.scheduler.schedule(() -> {
             try
             {
+                _hx_recursing = false;
+
                 final result = invokeResume();
                 if (result is Primitive) {
                     return;