X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d112dc2a36d7d59778353daa9f9018b3ff4008f..3cebfef17b54f9dacc386f090827b8badb2773d2:/wxPython/src/_timer.i?ds=sidebyside diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 15f8abe230..b613bbc630 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -36,10 +36,10 @@ enum { void wxPyTimer::Notify() { bool found; - wxPyBeginBlockThreads(); + bool blocked = wxPyBeginBlockThreads(); if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); - wxPyEndBlockThreads(); + wxPyEndBlockThreads(blocked); if (! found) wxTimer::Notify(); }