called once command has been established, therefore there's no need
to handle other cases.
}
else {
bool already_there = false;
+
switch (pktType) {
case DINIT_CP_STARTSERVICE:
// start service, mark as required
service_set->processQueues(false);
already_there = service->getState() == ServiceState::STOPPED;
break;
- default:
- // TODO return an error
- break;
}
char ack_buf[] = { (char)(already_there ? DINIT_RP_ALREADYSS : DINIT_RP_ACK) };