]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Fri, 1 Jun 2012 22:01:13 +0000 (22:01 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Fri, 1 Jun 2012 22:01:13 +0000 (22:01 +0000)
ev.c

diff --git a/ev.c b/ev.c
index ff204bd91f04b1022ebfc19b655c588e157a443c..20bc3b03404982851684348805957c303e5b71b5 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -3180,6 +3180,10 @@ ev_run (EV_P_ int flags)
   if (loop_done == EVBREAK_ONE)
     loop_done = EVBREAK_CANCEL;
 
+  /* pendingpri is normally -1 here, which is not a good */
+  /* value when returning to an ev_invoke_pending */
+  pendingpri = NUMPRI - 1;
+
 #if EV_FEATURE_API
   --loop_depth;
 #endif