Skip to content

Commit c47ea0b

Browse files
committed
* fix bool libuv_reactor_execute(bool no_wait)
1 parent b67dc84 commit c47ea0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libuv_reactor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ bool libuv_reactor_execute(bool no_wait)
168168
{
169169
// OPTIMIZATION: Skip uv_run() if no libuv handles to avoid unnecessary clock_gettime() calls
170170
if (!uv_loop_alive(UVLOOP)) {
171-
return ZEND_ASYNC_ACTIVE_EVENT_COUNT > 0;
171+
return false;
172172
}
173173

174174
const bool has_handles = uv_run(UVLOOP, no_wait ? UV_RUN_NOWAIT : UV_RUN_ONCE);
175175

176-
return ZEND_ASYNC_ACTIVE_EVENT_COUNT > 0 || has_handles;
176+
return has_handles;
177177
}
178178

179179
/* }}} */

0 commit comments

Comments
 (0)