Restart the launcher if it had crashed when invoked (#7127)

This commit is contained in:
Ivan Stošić
2020-10-13 10:26:04 +02:00
committed by GitHub
parent 45124c2245
commit bb8cc0a305

View File

@@ -271,6 +271,12 @@ public:
// For now, hotkeyId will always be zero
if (m_enabled)
{
if (WaitForSingleObject(m_hProcess, 0) == WAIT_OBJECT_0)
{
// The process exited, restart it
enable();
}
SetEvent(m_hEvent);
return true;
}