diff options
author | root <root> | 2007-11-11 01:42:13 +0000 |
---|---|---|
committer | root <root> | 2007-11-11 01:42:13 +0000 |
commit | b6461205c4fecf83ffc3ffe41e49519cb71059f1 (patch) | |
tree | bf276eca425bd2d24a43d21caad337d9de58461d /ev.c | |
parent | 3ef16649fd7310725554cffb8b24fdcefa4a5eb1 (diff) |
fix stop function of idle/check/prepare/child
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]; @@ -1551,7 +1551,7 @@ void ev_child_stop (EV_P_ struct ev_child *w) { ev_clear_pending (EV_A_ (W)w); - if (ev_is_active (w)) + if (!ev_is_active (w)) return; wlist_del ((WL *)&childs [w->pid & (PID_HASHSIZE - 1)], (WL)w); |