[Modify] Polish it
This commit is contained in:
parent
eb10d30220
commit
17a5645c25
@ -1006,21 +1006,21 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var output = OutputStream;
|
var stream = OutputStream;
|
||||||
|
|
||||||
if (willBlock) {
|
if (willBlock) {
|
||||||
output.Write (responseEntity, 0, (int) len);
|
stream.Write (responseEntity, 0, (int) len);
|
||||||
close (false);
|
close (false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
output.BeginWrite (
|
stream.BeginWrite (
|
||||||
responseEntity,
|
responseEntity,
|
||||||
0,
|
0,
|
||||||
(int) len,
|
(int) len,
|
||||||
ar => {
|
ar => {
|
||||||
output.EndWrite (ar);
|
stream.EndWrite (ar);
|
||||||
close (false);
|
close (false);
|
||||||
},
|
},
|
||||||
null
|
null
|
||||||
|
Loading…
Reference in New Issue
Block a user