diff --git a/System.Net.WebSockets.Client.Managed/ManagedWebSocket.cs b/System.Net.WebSockets.Client.Managed/ManagedWebSocket.cs
index 332f565..69387bb 100644
--- a/System.Net.WebSockets.Client.Managed/ManagedWebSocket.cs
+++ b/System.Net.WebSockets.Client.Managed/ManagedWebSocket.cs
@@ -625,7 +625,6 @@ private static void WriteRandomMask(byte[] buffer, int offset)
/// The buffer into which payload data should be written.
/// The CancellationToken used to cancel the websocket.
/// Information about the received message.
- bool _dumpNext = false;
private async Task ReceiveAsyncPrivate(ArraySegment payloadBuffer, CancellationToken cancellationToken)
{
// This is a long method. While splitting it up into pieces would arguably help with readability, doing so would
@@ -728,7 +727,7 @@ private async Task ReceiveAsyncPrivate(ArraySegment(payloadBuffer.Array, payloadBuffer.Offset, bytesToCopy), header.Fin && header.PayloadLength == 0, _utf8TextState)))
{
await CloseWithReceiveErrorAndThrowAsync(WebSocketCloseStatus.InvalidPayloadData, WebSocketError.Faulted, cancellationToken).ConfigureAwait(false);