X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/8eaf72b24298b3c7c6e33812b1410b1ee3bb33c6..b6461205c4fecf83ffc3ffe41e49519cb71059f1:/ev.c diff --git a/ev.c b/ev.c index 266cbf8..5aca9ec 100644 --- a/ev.c +++ b/ev.c @@ -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]; @@ -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);