summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-12-01 23:43:45 +0000
committerroot <root>2007-12-01 23:43:45 +0000
commitb3505169e5e0abb024dd7599b16661220e8e4bd0 (patch)
tree58c58107f24da09049040b958e39c1c9750dff47 /ev.c
parent647706a2acbfa58a6fdf5fb3ab17f82833faa0b0 (diff)
braino
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ev.c b/ev.c
index 221da59..9f7e2be 100644
--- a/ev.c
+++ b/ev.c
@@ -1344,7 +1344,7 @@ ev_loop (EV_P_ int flags)
call_pending (EV_A); /* in case we recurse, ensure ordering stays nice and clean */
- while (expect_false (!activecnt))
+ do
{
#ifndef _WIN32
if (expect_false (curpid)) /* penalise the forking check even more */
@@ -1442,9 +1442,8 @@ ev_loop (EV_P_ int flags)
call_pending (EV_A);
- if (expect_false (loop_done))
- break;
}
+ while (expect_true (activecnt && !loop_done));
if (loop_done == EVUNLOOP_ONE)
loop_done = EVUNLOOP_CANCEL;