Permalink
Browse files

Windows: Stop input poll before emu shutdown.

Otherwise, we could crash in the input thread during host deletion.
  • Loading branch information...
unknownbrackets committed Dec 3, 2017
1 parent 4e6c083 commit f607f4144090e95bbfd1992dae82df329e8b4070
Showing with 1 addition and 1 deletion.
  1. +1 −1 Windows/MainWindow.cpp
View
@@ -859,8 +859,8 @@ namespace MainWindow
break;
case WM_CLOSE:
EmuThread_Stop();
InputDevice::StopPolling();
EmuThread_Stop();
WindowsRawInput::Shutdown();
return DefWindowProc(hWnd,message,wParam,lParam);

0 comments on commit f607f41

Please sign in to comment.