This commit is contained in:
Ben Gräf 2017-10-20 20:07:25 +02:00
parent e245b50a41
commit d34d51d7a2
6 changed files with 25 additions and 27 deletions

View file

@ -130,9 +130,9 @@ void CCClient::publishClientStatusReport()
} else if (controlCommand.getCommand() == ControlCommand::RESTART) {
LOG_WARN("[CC-Client] Command: RESTART received -> restart");
App::restart();
} else if (controlCommand.getCommand() == ControlCommand::QUIT) {
LOG_WARN("[CC-Client] Command: QUIT received -> quit");
App::quit();
} else if (controlCommand.getCommand() == ControlCommand::SHUTDOWN) {
LOG_WARN("[CC-Client] Command: SHUTDOWN received -> shutdown");
App::shutdown();
}
} else {
LOG_ERR("[CC-Client] Unknown command received from CC Server.");

View file

@ -95,5 +95,5 @@ bool ControlCommand::isOneTimeCommand() const {
return m_command == ControlCommand::UPDATE_CONFIG ||
m_command == ControlCommand::RESTART ||
m_command == ControlCommand::QUIT;
m_command == ControlCommand::SHUTDOWN;
}

View file

@ -37,7 +37,7 @@ public:
STOP,
UPDATE_CONFIG,
RESTART,
QUIT
SHUTDOWN
};
public:
@ -75,7 +75,7 @@ private:
"STOP",
"UPDATE_CONFIG",
"RESTART",
"QUIT"
"SHUTDOWN"
};
Command m_command;