|
|
|
@ -671,8 +671,8 @@ namespace WebSocketSharp
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
length,
|
|
|
|
length,
|
|
|
|
ar => {
|
|
|
|
ar => {
|
|
|
|
|
|
|
|
try {
|
|
|
|
byte[] bytes = null;
|
|
|
|
byte[] bytes = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
var len = stream.EndRead (ar);
|
|
|
|
var len = stream.EndRead (ar);
|
|
|
|
bytes = len < 1
|
|
|
|
bytes = len < 1
|
|
|
|
@ -685,14 +685,10 @@ namespace WebSocketSharp
|
|
|
|
// The Stream has been closed.
|
|
|
|
// The Stream has been closed.
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex) {
|
|
|
|
catch {
|
|
|
|
if (error != null)
|
|
|
|
throw;
|
|
|
|
error (ex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (completed != null)
|
|
|
|
if (completed != null)
|
|
|
|
completed (bytes);
|
|
|
|
completed (bytes);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|