[Modify] Polish it

This commit is contained in:
sta 2020-11-17 20:42:21 +09:00
parent beb70d6f73
commit 474c6ebf3f

View File

@ -331,7 +331,14 @@ namespace WebSocketSharp.Net
return; return;
} }
conn._stream.BeginRead (conn._buffer, 0, _bufferLength, onRead, conn); try {
conn._stream.BeginRead (conn._buffer, 0, _bufferLength, onRead, conn);
}
catch (Exception) {
// TODO: Logging.
conn.close ();
}
} }
} }