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 63e69a0 commit 29f050bCopy full SHA for 29f050b
scheduler.c
@@ -1028,7 +1028,7 @@ bool async_scheduler_coroutine_enqueue(zend_coroutine_t *coroutine)
1028
// Behavior for a new coroutine
1029
// see: async_API.c spawn(zend_async_scope_t *scope, zend_object *scope_provider, int32_t priority)
1030
if (false == ZEND_COROUTINE_IS_STARTED(coroutine)
1031
- && zend_hash_index_find(&ASYNC_G(coroutines), ((async_coroutine_t *)coroutine)->std.handle) != NULL) {
+ && zend_hash_index_find(&ASYNC_G(coroutines), ((async_coroutine_t *)coroutine)->std.handle) == NULL) {
1032
// save the filename and line number where the coroutine was created
1033
zend_apply_current_filename_and_line(&coroutine->filename, &coroutine->lineno);
1034
0 commit comments