Skip to content

Commit d25ffde

Browse files
committed
Merge remote-tracking branch 'origin/v2.9'
2 parents 44497c7 + 3bd6a8f commit d25ffde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nerdbank.Streams/MultiplexingStream.Channel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ internal void Dispose(Exception? disposeException)
396396
// We can't know whether there is or will be more bytes written to the user's PipeWriter,
397397
// but we need to terminate our reader for their writer as part of reclaiming resources.
398398
// Cancel the pending or next read operation so the reader loop will immediately notice and shutdown.
399-
this.mxStreamIOReader.CancelPendingRead();
399+
this.mxStreamIOReader?.CancelPendingRead();
400400

401401
// Only Complete the reader if our async reader doesn't own it to avoid thread-safety bugs.
402402
PipeReader? mxStreamIOReader = null;

0 commit comments

Comments
 (0)