summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-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