refactor: Clear watchdog command setting to prevent persistence on daemon restart
This commit is contained in:
parent
e07a2efbcc
commit
fa1ab27ee9
1 changed files with 3 additions and 0 deletions
|
|
@ -174,6 +174,9 @@ void DaemonApp::clearWatchdogCommand()
|
||||||
{
|
{
|
||||||
LOG_DEBUG("clearing watchdog command");
|
LOG_DEBUG("clearing watchdog command");
|
||||||
|
|
||||||
|
// Clear the setting to prevent it from being next time the daemon starts.
|
||||||
|
setCommand("");
|
||||||
|
|
||||||
#if SYSAPI_WIN32
|
#if SYSAPI_WIN32
|
||||||
m_watchdog->setCommand("", false);
|
m_watchdog->setCommand("", false);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue