fixed: watchdog keeps showing backoff message even if no command to run.
This commit is contained in:
parent
af51454e98
commit
98f8a12425
|
@ -233,7 +233,7 @@ CMSWindowsWatchdog::mainLoop(void*)
|
||||||
shutdownProcess(m_processInfo.hProcess, m_processInfo.dwProcessId, 20);
|
shutdownProcess(m_processInfo.hProcess, m_processInfo.dwProcessId, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG((CLOG_DEBUG "relauncher main thread finished"));
|
LOG((CLOG_DEBUG "watchdog main thread finished"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -331,6 +331,7 @@ CMSWindowsWatchdog::setCommand(const std::string& command, bool elevate)
|
||||||
m_command = command;
|
m_command = command;
|
||||||
m_elevateProcess = elevate;
|
m_elevateProcess = elevate;
|
||||||
m_commandChanged = true;
|
m_commandChanged = true;
|
||||||
|
m_processFailures = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
|
|
Loading…
Reference in New Issue