[Modify] Polish it
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user