[Modify] Polish it

This commit is contained in:
sta 2020-01-26 19:54:48 +09:00
parent 3dd2a29965
commit 67f467b2e5

View File

@ -306,7 +306,14 @@ namespace WebSocketSharp.Net
public override void Flush () public override void Flush ()
{ {
if (!_disposed && (_sendChunked || _response.SendChunked)) if (_disposed)
return;
var sendChunked = _sendChunked || _response.SendChunked;
if (!sendChunked)
return;
flush (false); flush (false);
} }