Skip to content

Commit

Permalink
Windows: Stop input device before main thread.
Browse files Browse the repository at this point in the history
Appears to help an occasional shutdown crash.
  • Loading branch information
hrydgard committed Dec 27, 2022
1 parent c9debf2 commit 8b0fc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,8 @@ namespace MainWindow
break;

case WM_CLOSE:
MainThread_Stop();
InputDevice::StopPolling();
MainThread_Stop();
WindowsRawInput::Shutdown();
return DefWindowProc(hWnd,message,wParam,lParam);

Expand Down

0 comments on commit 8b0fc95

Please sign in to comment.