cmdmon: allow unhandled commands

Replace the assert() with a debug message to not crash if someone
forgets to implement a newly defined command.
This commit is contained in:
Miroslav Lichvar 2016-01-29 15:35:32 +01:00
parent ea002130d7
commit 6e4dd9302d

View file

@ -1565,7 +1565,8 @@ read_from_cmd_socket(void *anything)
break;
default:
assert(0);
DEBUG_LOG(LOGF_CmdMon, "Unhandled command %d", rx_command);
tx_message.status = htons(STT_FAILED);
break;
}
} else {