[Modify] Move it
This commit is contained in:
parent
8afac96d6d
commit
3334a53336
@ -138,12 +138,8 @@ namespace WebSocketSharp.Net
|
|||||||
private bool flush (bool closing)
|
private bool flush (bool closing)
|
||||||
{
|
{
|
||||||
if (!_response.HeadersSent) {
|
if (!_response.HeadersSent) {
|
||||||
if (!flushHeaders (closing)) {
|
if (!flushHeaders (closing))
|
||||||
if (closing)
|
|
||||||
_response.CloseConnection = true;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
_sendChunked = _response.SendChunked;
|
_sendChunked = _response.SendChunked;
|
||||||
_writeBody = _sendChunked ? _writeChunked : _write;
|
_writeBody = _sendChunked ? _writeChunked : _write;
|
||||||
@ -280,6 +276,8 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_response.CloseConnection = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_sendChunked)
|
if (_sendChunked)
|
||||||
|
Loading…
Reference in New Issue
Block a user