]> git.llucax.com Git - software/libev.git/commitdiff
cna you say fuck?
authorroot <root>
Sun, 11 Nov 2007 04:02:54 +0000 (04:02 +0000)
committerroot <root>
Sun, 11 Nov 2007 04:02:54 +0000 (04:02 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 299ba00564658f1b2b83b2fcab46cbb540e65412..cad6350eab6039d34b521a82c136f5f604c9c780 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -1463,7 +1463,7 @@ void
 ev_prepare_stop (EV_P_ struct ev_prepare *w)
 {
   ev_clear_pending (EV_A_ (W)w);
 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];
     return;
 
   prepares [((W)w)->active - 1] = prepares [--preparecnt];