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 b67dc84 commit c47ea0bCopy full SHA for c47ea0b
libuv_reactor.c
@@ -168,12 +168,12 @@ bool libuv_reactor_execute(bool no_wait)
168
{
169
// OPTIMIZATION: Skip uv_run() if no libuv handles to avoid unnecessary clock_gettime() calls
170
if (!uv_loop_alive(UVLOOP)) {
171
- return ZEND_ASYNC_ACTIVE_EVENT_COUNT > 0;
+ return false;
172
}
173
174
const bool has_handles = uv_run(UVLOOP, no_wait ? UV_RUN_NOWAIT : UV_RUN_ONCE);
175
176
- return ZEND_ASYNC_ACTIVE_EVENT_COUNT > 0 || has_handles;
+ return has_handles;
177
178
179
/* }}} */
0 commit comments