Fixed START command
This commit is contained in:
parent
ebde8b30f6
commit
6eea2bb9d7
1 changed files with 15 additions and 17 deletions
|
@ -247,7 +247,6 @@ void App::onSignal(uv_signal_t* handle, int signum)
|
||||||
|
|
||||||
void App::onCommandReceived(uv_async_t* async)
|
void App::onCommandReceived(uv_async_t* async)
|
||||||
{
|
{
|
||||||
if (async->data) {
|
|
||||||
auto command = reinterpret_cast<ControlCommand::Command &> (async->data);
|
auto command = reinterpret_cast<ControlCommand::Command &> (async->data);
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case ControlCommand::START:
|
case ControlCommand::START:
|
||||||
|
@ -264,5 +263,4 @@ void App::onCommandReceived(uv_async_t* async)
|
||||||
App::shutdown();
|
App::shutdown();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue