Restart the launcher if it had crashed when invoked (#7127)
This commit is contained in:
Родитель
45124c2245
Коммит
bb8cc0a305
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче