summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-11-11 01:29:49 +0000
committerroot <root>2007-11-11 01:29:49 +0000
commit3ef16649fd7310725554cffb8b24fdcefa4a5eb1 (patch)
tree3b834596c1aed97524029e747e732a918145b996 /ev.c
parent8eaf72b24298b3c7c6e33812b1410b1ee3bb33c6 (diff)
fix stop function of idle/check/prepare
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ev.c b/ev.c
index 266cbf8..9737950 100644
--- a/ev.c
+++ b/ev.c
@@ -1436,7 +1436,7 @@ void
ev_idle_stop (EV_P_ struct ev_idle *w)
{
ev_clear_pending (EV_A_ (W)w);
- if (ev_is_active (w))
+ if (!ev_is_active (w))
return;
idles [((W)w)->active - 1] = idles [--idlecnt];
@@ -1458,7 +1458,7 @@ void
ev_prepare_stop (EV_P_ struct ev_prepare *w)
{
ev_clear_pending (EV_A_ (W)w);
- if (ev_is_active (w))
+ if (!ev_is_active (w))
return;
prepares [((W)w)->active - 1] = prepares [--preparecnt];
@@ -1480,7 +1480,7 @@ void
ev_check_stop (EV_P_ struct ev_check *w)
{
ev_clear_pending (EV_A_ (W)w);
- if (ev_is_active (w))
+ if (!ev_is_active (w))
return;
checks [((W)w)->active - 1] = checks [--checkcnt];