We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd2e552 commit f28c2c2Copy full SHA for f28c2c2
src/Renci.SshNet/Channels/Channel.cs
@@ -22,7 +22,7 @@ internal abstract class Channel : IChannel
22
private uint? _remoteWindowSize;
23
private uint? _remoteChannelNumber;
24
private uint? _remotePacketSize;
25
- private ISession _session;
+ private readonly ISession _session;
26
private bool _isDisposed;
27
28
/// <summary>
@@ -834,7 +834,6 @@ protected virtual void Dispose(bool disposing)
834
var session = _session;
835
if (session != null)
836
{
837
- _session = null;
838
session.ChannelWindowAdjustReceived -= OnChannelWindowAdjust;
839
session.ChannelDataReceived -= OnChannelData;
840
session.ChannelExtendedDataReceived -= OnChannelExtendedData;
0 commit comments