[Modify] Polish it
This commit is contained in:
parent
3dd2a29965
commit
67f467b2e5
@ -306,8 +306,15 @@ namespace WebSocketSharp.Net
|
||||
|
||||
public override void Flush ()
|
||||
{
|
||||
if (!_disposed && (_sendChunked || _response.SendChunked))
|
||||
flush (false);
|
||||
if (_disposed)
|
||||
return;
|
||||
|
||||
var sendChunked = _sendChunked || _response.SendChunked;
|
||||
|
||||
if (!sendChunked)
|
||||
return;
|
||||
|
||||
flush (false);
|
||||
}
|
||||
|
||||
public override int Read (byte[] buffer, int offset, int count)
|
||||
|
Loading…
Reference in New Issue
Block a user