From 2d67c5cba65a9a75fad1117d0637ba602be384dd Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 4 Feb 2020 21:53:49 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/ResponseStream.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/ResponseStream.cs b/websocket-sharp/Net/ResponseStream.cs index 5ac59b24..0a3ffaa9 100644 --- a/websocket-sharp/Net/ResponseStream.cs +++ b/websocket-sharp/Net/ResponseStream.cs @@ -150,10 +150,8 @@ namespace WebSocketSharp.Net } flushBody (closing); - if (closing && _sendChunked) { - var last = getChunkSizeBytes (0, true); - _write (last, 0, last.Length); - } + if (closing && _sendChunked) + _write (_lastChunk, 0, 5); return true; }