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