Browse Source

Make sure to shutdown receive socket when client has closed.

drieseng 5 years ago
parent
commit
2c1a4d9596
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

+ 2 - 0
src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

@@ -127,6 +127,8 @@ namespace Renci.SshNet.Tests.Common
             else
             {
                 SignalDisconnected(handler);
+                handler.Shutdown(SocketShutdown.Both);
+                handler.Close();
             }
         }