handle error when waiting for connection
This commit is contained in:
parent
e2384d01ec
commit
b126217dab
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user