Skip to content

Commit 4344c20

Browse files
committed
* send zend_create_graceful_exit() instead Cancellcation
1 parent edf53f7 commit 4344c20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scheduler.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,7 @@ static bool resolve_deadlocks(void)
556556
if (ZEND_COROUTINE_IS_FIBER(coroutine)
557557
&& ZEND_COROUTINE_IS_YIELD(coroutine)
558558
&& coroutine->extended_data != NULL) {
559-
ZEND_ASYNC_CANCEL(coroutine,
560-
async_new_exception(async_ce_cancellation_exception, "Fiber coroutine cancelled"), true);
559+
ZEND_ASYNC_CANCEL(coroutine, zend_create_graceful_exit(), true);
561560

562561
if (UNEXPECTED(EG(exception) != NULL)) {
563562
return true;

0 commit comments

Comments
 (0)