1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-10 05:15:42 +00:00

Compare commits

...

4 Commits

View File

@ -101,8 +101,9 @@ public sealed class ProtocolClient : ClientNode
{ {
Close(); Close();
IsConnected = false; IsConnected = false;
throw new InvalidOperationException("Handshake failed. " +
$"Server responded with {handshakeResponse.HandshakeResponse:D}"); var message = $"Handshake failed. Server responded with {handshakeResponse.HandshakeResponse:D}";
throw new InvalidOperationException(message);
} }
State = ClientState.Encrypting; State = ClientState.Encrypting;