Cleanup
This commit is contained in:
parent
e245b50a41
commit
d34d51d7a2
6 changed files with 25 additions and 27 deletions
|
@ -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.");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue