[Modify] Polish it
This commit is contained in:
parent
ead65d18ec
commit
4e003b9c7a
@ -822,16 +822,16 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
private void close (byte[] responseEntity, int bufferLength, bool willBlock)
|
private void close (byte[] responseEntity, int bufferLength, bool willBlock)
|
||||||
{
|
{
|
||||||
var output = OutputStream;
|
var stream = OutputStream;
|
||||||
|
|
||||||
if (willBlock) {
|
if (willBlock) {
|
||||||
output.WriteBytes (responseEntity, bufferLength);
|
stream.WriteBytes (responseEntity, bufferLength);
|
||||||
close (false);
|
close (false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
output.WriteBytesAsync (
|
stream.WriteBytesAsync (
|
||||||
responseEntity,
|
responseEntity,
|
||||||
bufferLength,
|
bufferLength,
|
||||||
() => close (false),
|
() => close (false),
|
||||||
|
Loading…
Reference in New Issue
Block a user