X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70a4ef826ff45fbf06106ae3b6c3a1263eabfe73..da32eb53cbe7947f3f4599d7b6b5caa21a68d27f:/wxPython/src/_log.i diff --git a/wxPython/src/_log.i b/wxPython/src/_log.i index 7960ba69f2..96214b20f6 100644 --- a/wxPython/src/_log.i +++ b/wxPython/src/_log.i @@ -250,26 +250,26 @@ public: virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { bool found; - wxPyBeginBlockThreads(); + bool blocked = wxPyBeginBlockThreads(); if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { PyObject* s = wx2PyString(szString); wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); Py_DECREF(s); } - wxPyEndBlockThreads(); + wxPyEndBlockThreads(blocked); if (! found) wxLog::DoLog(level, szString, t); } virtual void DoLogString(const wxChar *szString, time_t t) { bool found; - wxPyBeginBlockThreads(); + bool blocked = wxPyBeginBlockThreads(); if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { PyObject* s = wx2PyString(szString); wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); Py_DECREF(s); } - wxPyEndBlockThreads(); + wxPyEndBlockThreads(blocked); if (! found) wxLog::DoLogString(szString, t); }