Handle a disconnect from the other side during connection establishment.

This commit is contained in:
Jeremy Rand 2022-03-15 23:22:56 -04:00
parent 70d98a135a
commit cac996788d
2 changed files with 6 additions and 5 deletions

View File

@ -7,17 +7,17 @@
<key>Archive.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>2</integer>
</dict>
<key>Binary.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
<integer>4</integer>
</dict>
<key>DiskImage.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>1</integer>
</dict>
<key>Listener.xcscheme_^#shared#^_</key>
<dict>
@ -27,7 +27,7 @@
<key>doNotBuild.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>3</integer>
</dict>
</dict>
</dict>

View File

@ -460,7 +460,8 @@ void handleAwaitingEstablishState(void)
break;
default:
enterErrorState("Unexpected TCP state", srBuffer.srState);
closeConnection();
newState(LISTEN_STATE_AWAITING_CONNECTION);
break;
}
}