X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/7633bcdce9c376b70aca8166696f360a4e5bbddc..9ddee32d6b474c0c6041fbaefade615080892b9c:/ev.c diff --git a/ev.c b/ev.c index cad6350..5124b2b 100644 --- a/ev.c +++ b/ev.c @@ -1441,7 +1441,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];