From f84f51c4f8a1a1df8d1993837ada427e4ac90bbd Mon Sep 17 00:00:00 2001 From: Daniel Gerlag Date: Sat, 7 Oct 2017 09:55:46 -0700 Subject: [PATCH] .close on TcpConnection --- NBlockchain/Services/Net/PeerConnection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NBlockchain/Services/Net/PeerConnection.cs b/NBlockchain/Services/Net/PeerConnection.cs index 5c0bbd8..d4c3224 100644 --- a/NBlockchain/Services/Net/PeerConnection.cs +++ b/NBlockchain/Services/Net/PeerConnection.cs @@ -140,7 +140,8 @@ public void Disconnect() _resetEvent.WaitOne(); try { - _client?.Client?.Shutdown(SocketShutdown.Both); + //_client?.Client?.Shutdown(SocketShutdown.Both); + _client.Close(); } catch (Exception ex) {