handle error when waiting for connection

This commit is contained in:
Wolfgang Hottgenroth 2020-12-11 11:58:29 +01:00
parent e2384d01ec
commit b126217dab
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -220,6 +220,7 @@ static void cmdHandlerEngine(void *handle) {
sockState = getSn_SR(CMD_SOCK); sockState = getSn_SR(CMD_SOCK);
if (sockState != SOCK_LISTEN) { if (sockState != SOCK_LISTEN) {
coloredMsg(LOG_YELLOW, false, "ch che socket state is 0x%02x", sockState); coloredMsg(LOG_YELLOW, false, "ch che socket state is 0x%02x", sockState);
state = CH_DISCONNECT;
} }
if (sockState == SOCK_ESTABLISHED) { if (sockState == SOCK_ESTABLISHED) {