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