|
|
@ -846,11 +846,8 @@ namespace WebSocketSharp.Server |
|
|
|
); |
|
|
|
} |
|
|
|
catch (SocketException ex) { |
|
|
|
if (_state == ServerState.ShuttingDown) { |
|
|
|
_log.Info ("The underlying listener is stopped."); |
|
|
|
|
|
|
|
if (_state == ServerState.ShuttingDown) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
_log.Fatal (ex.Message); |
|
|
|
_log.Debug (ex.ToString ()); |
|
|
@ -858,11 +855,8 @@ namespace WebSocketSharp.Server |
|
|
|
break; |
|
|
|
} |
|
|
|
catch (InvalidOperationException ex) { |
|
|
|
if (_state == ServerState.ShuttingDown) { |
|
|
|
_log.Info ("The underlying listener is stopped."); |
|
|
|
|
|
|
|
if (_state == ServerState.ShuttingDown) |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
_log.Fatal (ex.Message); |
|
|
|
_log.Debug (ex.ToString ()); |
|
|
|