Skip to content

Commit f4597e1

Browse files
committed
* fix bug with waker dtor
* add macro START_REACTOR_OR_RETURN for reactor autostart
1 parent 6fa485b commit f4597e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_async_API.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ ZEND_API zend_async_waker_t *zend_async_waker_new(zend_coroutine_t *coroutine)
369369
}
370370

371371
if (UNEXPECTED(coroutine->waker != NULL)) {
372-
coroutine->waker->dtor(coroutine);
373-
coroutine->waker = NULL;
372+
zend_async_waker_destroy(coroutine);
374373
}
375374

376375
zend_async_waker_t *waker = pecalloc(1, sizeof(zend_async_waker_t), 0);

0 commit comments

Comments
 (0)