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.
2 parents 4ab7fbf + e8357f6 commit 3bd6a8fCopy full SHA for 3bd6a8f
src/Nerdbank.Streams/MultiplexingStream.Channel.cs
@@ -381,7 +381,7 @@ public void Dispose()
381
// We can't know whether there is or will be more bytes written to the user's PipeWriter,
382
// but we need to terminate our reader for their writer as part of reclaiming resources.
383
// Cancel the pending or next read operation so the reader loop will immediately notice and shutdown.
384
- this.mxStreamIOReader.CancelPendingRead();
+ this.mxStreamIOReader?.CancelPendingRead();
385
386
// Only Complete the reader if our async reader doesn't own it to avoid thread-safety bugs.
387
PipeReader? mxStreamIOReader = null;
0 commit comments