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 44497c7 + 3bd6a8f commit d25ffdeCopy full SHA for d25ffde
src/Nerdbank.Streams/MultiplexingStream.Channel.cs
@@ -396,7 +396,7 @@ internal void Dispose(Exception? disposeException)
396
// We can't know whether there is or will be more bytes written to the user's PipeWriter,
397
// but we need to terminate our reader for their writer as part of reclaiming resources.
398
// Cancel the pending or next read operation so the reader loop will immediately notice and shutdown.
399
- this.mxStreamIOReader.CancelPendingRead();
+ this.mxStreamIOReader?.CancelPendingRead();
400
401
// Only Complete the reader if our async reader doesn't own it to avoid thread-safety bugs.
402
PipeReader? mxStreamIOReader = null;
0 commit comments