Fix for issue #84
This commit is contained in:
parent
2a3a62ec82
commit
f60f16f70f
@ -671,8 +671,8 @@ namespace WebSocketSharp
|
||||
0,
|
||||
length,
|
||||
ar => {
|
||||
try {
|
||||
byte[] bytes = null;
|
||||
|
||||
try {
|
||||
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);
|
||||
|
||||
return;
|
||||
catch {
|
||||
throw;
|
||||
}
|
||||
|
||||
try {
|
||||
if (completed != null)
|
||||
completed (bytes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user