Commit 89498a31 authored by Honfika's avatar Honfika

bufferpool was never assigned in CopyStream => always null reference exception in Dispose

parent a31938f4
...@@ -36,6 +36,7 @@ namespace StreamExtended.Network ...@@ -36,6 +36,7 @@ namespace StreamExtended.Network
this.writer = writer; this.writer = writer;
BufferSize = bufferSize; BufferSize = bufferSize;
buffer = bufferPool.GetBuffer(bufferSize); buffer = bufferPool.GetBuffer(bufferSize);
this.bufferPool = bufferPool;
} }
public async Task<bool> FillBufferAsync(CancellationToken cancellationToken = default(CancellationToken)) public async Task<bool> FillBufferAsync(CancellationToken cancellationToken = default(CancellationToken))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment