summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index cef2047..c66db35 100644
--- a/event.c
+++ b/event.c
@@ -110,7 +110,7 @@ void event_base_free (struct event_base *base)
dLOOPbase;
#if EV_MULTIPLICITY
- if (ev_default_loop (EVFLAG_AUTO) != loop)
+ if (!is_default_loop (loop))
ev_loop_destroy (loop);
#endif
}