Merge pull request #8065 from radarhere/threadstate

This commit is contained in:
Hugo van Kemenade 2024-06-25 05:56:51 -06:00 committed by GitHub
commit 4d9fdac92f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;