X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/7633bcdce9c376b70aca8166696f360a4e5bbddc..7b056e46cb219eb2438c0b9ea152875be997b6c0:/ev.c diff --git a/ev.c b/ev.c index cad6350..4812c40 100644 --- a/ev.c +++ b/ev.c @@ -53,7 +53,7 @@ extern "C" { # define EV_USE_POLL 1 # endif -# if HAVE_EPOLL && HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) +# if HAVE_EPOLL_CTL && HAVE_SYS_EPOLL_H && !defined (EV_USE_EPOLL) # define EV_USE_EPOLL 1 # endif @@ -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];