Clear the listening message if the connection drops.

This commit is contained in:
Jeremy Rand
2022-03-23 23:21:13 -04:00
parent 422bc539e2
commit 051930c076
+2
View File
@@ -494,6 +494,7 @@ void handleAwaitingMsgHeaderState(void)
if (srBuffer.srState != TCPSESTABLISHED) {
closeConnection();
newState(LISTEN_STATE_AWAITING_CONNECTION);
globals->line2[0] = '\0';
return;
}
Word error = TCPIPReadTCP(globals->connIpid, 0,
@@ -555,6 +556,7 @@ void handleAwaitingTextState(void)
if (srBuffer.srState != TCPSESTABLISHED) {
closeConnection();
newState(LISTEN_STATE_AWAITING_CONNECTION);
globals->line2[0] = '\0';
return;
}