From fa470026cbe1f9e42c83742b96aeea53831b0a73 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 25 Feb 2021 20:19:44 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/ChunkStream.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/websocket-sharp/Net/ChunkStream.cs b/websocket-sharp/Net/ChunkStream.cs index 12b84fb4..204608cc 100644 --- a/websocket-sharp/Net/ChunkStream.cs +++ b/websocket-sharp/Net/ChunkStream.cs @@ -151,6 +151,7 @@ namespace WebSocketSharp.Net throwProtocolViolation ("CR is expected."); _sawCr = true; + if (offset == length) return InputChunkState.DataEnded; }