Skip to content

Commit 3f14c26

Browse files
committed
* fix awaitAny() - coroutine throws exception
1 parent d673f43 commit 3f14c26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

async_API.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ void async_waiting_callback(
394394
// as FUTURE-type objects, where the trigger can be activated only once.
395395
event->del_callback(event, callback);
396396

397+
if (exception != NULL) {
398+
ZEND_ASYNC_EVENT_SET_EXCEPTION_HANDLED(event);
399+
}
400+
397401
if (await_context->errors != NULL && exception != NULL) {
398402
const zval *success = NULL;
399403
zval exception_obj;

0 commit comments

Comments
 (0)