Skip to content

Commit

Permalink
Fixes sshnet#355
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons authored and ankithkonda committed Jun 4, 2021
1 parent d501da5 commit 7e8bf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Renci.SshNet/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,8 +1769,8 @@ private void SocketDisconnectAndDispose()
//
// This may result in a SocketException (eg. An existing connection was forcibly
// closed by the remote host) which we'll log and ignore as it means the socket
// was already shut down.
_socket.Shutdown(SocketShutdown.Send);
// was already shut down
_socket.Shutdown(SocketShutdown.Both);
}
catch (SocketException ex)
{
Expand Down

0 comments on commit 7e8bf58

Please sign in to comment.