Skip to content

Commit 2356d96

Browse files
committed
* fix ZEND_ASYNC_CANCEL(coroutine, zend_create_graceful_exit(), true)
1 parent d5a7814 commit 2356d96

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Zend/zend_fibers.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,11 +1316,7 @@ static void zend_fiber_object_destroy(zend_object *object)
13161316
return;
13171317
}
13181318

1319-
zend_object *exception = zend_async_new_exception(
1320-
ZEND_ASYNC_EXCEPTION_CANCELLATION, "Fiber has been destroyed"
1321-
);
1322-
1323-
ZEND_ASYNC_CANCEL(coroutine, exception, true);
1319+
ZEND_ASYNC_CANCEL(coroutine, zend_create_graceful_exit(), true);
13241320

13251321
//
13261322
// A Fiber shares ownership of a coroutine with the Scheduler. This is important.

0 commit comments

Comments
 (0)