Skip to content

Commit

Permalink
Fix bogus Debug.Assert in WebSocketBuffer (dotnet#19103)
Browse files Browse the repository at this point in the history
  • Loading branch information
safern authored Apr 28, 2017
1 parent 09932e8 commit 04b9fb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ internal class WebSocketBuffer : IDisposable

private WebSocketBuffer(ArraySegment<byte> internalBuffer, int receiveBufferSize, int sendBufferSize)
{
Debug.Assert(internalBuffer != null, "'internalBuffer' MUST NOT be NULL.");
Debug.Assert(internalBuffer.Array != null, "'internalBuffer.Array' MUST NOT be NULL.");
Debug.Assert(receiveBufferSize >= MinReceiveBufferSize,
"'receiveBufferSize' MUST be at least " + MinReceiveBufferSize.ToString(NumberFormatInfo.InvariantInfo) + ".");
Debug.Assert(sendBufferSize >= MinSendBufferSize,
Expand Down

0 comments on commit 04b9fb1

Please sign in to comment.