Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 89498a3

Browse files
committed
bufferpool was never assigned in CopyStream => always null reference exception in Dispose
1 parent a31938f commit 89498a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StreamExtended/Network/CopyStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public CopyStream(ICustomStreamReader reader, ICustomStreamWriter writer, IBuffe
3636
this.writer = writer;
3737
BufferSize = bufferSize;
3838
buffer = bufferPool.GetBuffer(bufferSize);
39+
this.bufferPool = bufferPool;
3940
}
4041

4142
public async Task<bool> FillBufferAsync(CancellationToken cancellationToken = default(CancellationToken))

0 commit comments

Comments
 (0)