Skip to content

Commit a530090

Browse files
Merging fix from @clivetong into our own SSH.NET fork
- The following article describes some of the issues with the double check lock that we have seen issues with: https://www.sudhanshutheone.com/posts/double-check-lock-csharp
1 parent dd2e552 commit a530090

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Renci.SshNet/Channels/Channel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ protected virtual void Dispose(bool disposing)
834834
var session = _session;
835835
if (session != null)
836836
{
837-
_session = null;
838837
session.ChannelWindowAdjustReceived -= OnChannelWindowAdjust;
839838
session.ChannelDataReceived -= OnChannelData;
840839
session.ChannelExtendedDataReceived -= OnChannelExtendedData;

0 commit comments

Comments
 (0)