summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2012-06-01 22:01:13 +0000
committerroot <root>2012-06-01 22:01:13 +0000
commit50eeafb254ed0f93a3dda951c6ae26bf436be420 (patch)
tree599b1f947f79de2c3fac296472f5eb7ec3bae1d9
parenta4f22598b399ee7cfec54e4e01328a4fa7dc5659 (diff)
*** empty log message ***
-rw-r--r--ev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index ff204bd..20bc3b0 100644
--- 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