[Modify] Polish it
This commit is contained in:
parent
47e53eda0b
commit
49a090413b
@ -331,12 +331,14 @@ namespace WebSocketSharp
|
|||||||
Stream destination,
|
Stream destination,
|
||||||
int bufferLength,
|
int bufferLength,
|
||||||
Action completed,
|
Action completed,
|
||||||
Action<Exception> error)
|
Action<Exception> error
|
||||||
|
)
|
||||||
{
|
{
|
||||||
var buff = new byte[bufferLength];
|
var buff = new byte[bufferLength];
|
||||||
|
|
||||||
AsyncCallback callback = null;
|
AsyncCallback callback = null;
|
||||||
callback = ar => {
|
callback =
|
||||||
|
ar => {
|
||||||
try {
|
try {
|
||||||
var nread = source.EndRead (ar);
|
var nread = source.EndRead (ar);
|
||||||
if (nread <= 0) {
|
if (nread <= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user