From 0ad98b6efa1d4383c64af4582c20e40c2f75b50c Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Fri, 1 Jun 2012 22:01:13 +0000 Subject: [PATCH] *** empty log message *** --- ev.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2