[Modify] Polish it
This commit is contained in:
parent
061159b4bf
commit
96d7e62d6b
@ -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 ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user