[Modify] Polish it
This commit is contained in:
parent
061159b4bf
commit
96d7e62d6b
@ -270,17 +270,19 @@ namespace WebSocketSharp.Net
|
|||||||
try {
|
try {
|
||||||
sock = lsnr._socket.EndAccept (asyncResult);
|
sock = lsnr._socket.EndAccept (asyncResult);
|
||||||
}
|
}
|
||||||
catch (SocketException) {
|
|
||||||
// TODO: Logging.
|
|
||||||
}
|
|
||||||
catch (ObjectDisposedException) {
|
catch (ObjectDisposedException) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
catch (Exception) {
|
||||||
|
// TODO: Logging.
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
lsnr._socket.BeginAccept (onAccept, lsnr);
|
lsnr._socket.BeginAccept (onAccept, lsnr);
|
||||||
}
|
}
|
||||||
catch {
|
catch (Exception) {
|
||||||
|
// TODO: Logging.
|
||||||
|
|
||||||
if (sock != null)
|
if (sock != null)
|
||||||
sock.Close ();
|
sock.Close ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user