mirror of
https://github.com/jeremysrand/Listener.git
synced 2024-12-21 02:29:18 +00:00
Clear the listening message if the connection drops.
This commit is contained in:
parent
422bc539e2
commit
051930c076
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user