[Modify] Polish it

This commit is contained in:
sta 2020-11-22 17:07:10 +09:00
parent 061159b4bf
commit 96d7e62d6b

View File

@ -270,17 +270,19 @@ namespace WebSocketSharp.Net
try {
sock = lsnr._socket.EndAccept (asyncResult);
}
catch (SocketException) {
// TODO: Logging.
}
catch (ObjectDisposedException) {
return;
}
catch (Exception) {
// TODO: Logging.
}
try {
lsnr._socket.BeginAccept (onAccept, lsnr);
}
catch {
catch (Exception) {
// TODO: Logging.
if (sock != null)
sock.Close ();