[Modify] Polish it

This commit is contained in:
sta 2020-02-08 16:56:10 +09:00
parent 0d7b507cee
commit 30599aa76a

View File

@ -179,16 +179,16 @@ namespace WebSocketSharp.Net
} }
} }
if (closing) { if (!closing) {
_body = new MemoryStream ();
return;
}
if (_sendChunked) if (_sendChunked)
_write (_lastChunk, 0, 5); _write (_lastChunk, 0, 5);
_body = null; _body = null;
} }
else {
_body = new MemoryStream ();
}
}
private bool flushHeaders (bool closing) private bool flushHeaders (bool closing)
{ {