summaryrefslogtreecommitdiffstats
path: root/src/uv-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uv-common.c')
-rw-r--r--src/uv-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uv-common.c b/src/uv-common.c
index bc7d137..7134589 100644
--- a/src/uv-common.c
+++ b/src/uv-common.c
@@ -627,7 +627,7 @@ int uv_loop_close(uv_loop_t* loop) {
void* saved_data;
#endif
- if (!QUEUE_EMPTY(&(loop)->active_reqs))
+ if (uv__has_active_reqs(loop))
return UV_EBUSY;
QUEUE_FOREACH(q, &loop->handle_queue) {