Skip to content

Commit fb21c50

Browse files
committed
Restore original thread state
1 parent ca55eb5 commit fb21c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ windowCallback(HWND wnd, UINT message, WPARAM wParam, LPARAM lParam) {
618618
if (callback) {
619619
/* restore thread state */
620620
PyEval_SaveThread();
621-
PyThreadState_Swap(threadstate);
621+
PyThreadState_Swap(current_threadstate);
622622
}
623623

624624
return status;

0 commit comments

Comments
 (0)