1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-14 04:45:41 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Oliver Booth
0db6fd2976
Merge 45111aae72 into 87cb461872 2024-02-12 22:57:27 +00:00
45111aae72
[ci skip] style: give exception message a variable to remove concat 2024-02-12 22:57:19 +00:00

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;