Skip to content

Commit

Permalink
Restore original thread state
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 17, 2024
1 parent 0da83a1 commit 3222dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3222dce

Please sign in to comment.