We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be33b74 commit 1aa86b8Copy full SHA for 1aa86b8
ext/async/task.c
@@ -1569,11 +1569,7 @@ ASYNC_FIBER_CALLBACK run_scheduler_fiber(void *arg)
1569
1570
scheduler->flags &= ~ASYNC_TASK_SCHEDULER_FLAG_ACTIVE;
1571
1572
- if (UNEXPECTED(scheduler->flags & ASYNC_TASK_SCHEDULER_FLAG_ERROR)) {
1573
- break;
1574
- }
1575
- // If the scheduler has exited, the task does not finish, coredump will occur
1576
- if (UNEXPECTED(scheduler->flags & ASYNC_TASK_SCHEDULER_FLAG_DISPOSED)) {
+ if (UNEXPECTED(scheduler->flags & (ASYNC_TASK_SCHEDULER_FLAG_DISPOSED | ASYNC_TASK_SCHEDULER_FLAG_ERROR))) {
1577
break;
1578
}
1579
} while (again || scheduler->refticks > 0);
0 commit comments