ext/libuv/src/uv-common.c in libuv-4.0.1 vs ext/libuv/src/uv-common.c in libuv-4.0.2

- old
+ new

@@ -625,10 +625,10 @@ uv_handle_t* h; #ifndef NDEBUG void* saved_data; #endif - if (uv__has_active_reqs(loop)) + if (!QUEUE_EMPTY(&(loop)->active_reqs)) return UV_EBUSY; QUEUE_FOREACH(q, &loop->handle_queue) { h = QUEUE_DATA(q, uv_handle_t, handle_queue); if (!(h->flags & UV__HANDLE_INTERNAL))