[Modify] Polish it

This commit is contained in:
sta 2017-07-04 14:40:03 +09:00
parent 6b7af9ad57
commit 473cf76f1b

View File

@ -944,15 +944,12 @@ namespace WebSocketSharp.Server
}
);
}
catch (HttpListenerException ex) {
if (_state == ServerState.ShuttingDown) {
_log.Info ("The receiving is stopped.");
catch (HttpListenerException) {
_log.Info ("The underlying listener is stopped.");
break;
}
_log.Fatal (ex.Message);
_log.Debug (ex.ToString ());
catch (InvalidOperationException) {
_log.Info ("The underlying listener is stopped.");
break;
}
catch (Exception ex) {