summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4d26a7a..85e3518 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -786,6 +786,12 @@ PyEval_EvalFrame(PyFrameObject *f)
why = WHY_EXCEPTION;
goto on_error;
}
+ if (things_to_do)
+ /* MakePendingCalls() didn't succeed.
+ Force early re-execution of this
+ "periodic" code, possibly after
+ a thread switch */
+ _Py_Ticker = 0;
}
#ifdef WITH_THREAD
if (interpreter_lock) {