Restore original thread state

This commit is contained in:
Andrew Murray 2024-05-17 10:46:32 +10:00
parent ca55eb50d9
commit fb21c50fb6

View File

@ -618,7 +618,7 @@ windowCallback(HWND wnd, UINT message, WPARAM wParam, LPARAM lParam) {
if (callback) {
/* restore thread state */
PyEval_SaveThread();
PyThreadState_Swap(threadstate);
PyThreadState_Swap(current_threadstate);
}
return status;