mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Restore original thread state
This commit is contained in:
parent
ca55eb50d9
commit
fb21c50fb6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user