[Modify] Add a catch
This commit is contained in:
parent
45e8d444a2
commit
9680857c95
@ -838,6 +838,18 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
catch (InvalidOperationException ex) {
|
||||||
|
if (_state == ServerState.ShuttingDown) {
|
||||||
|
_log.Info ("The underlying listener is stopped.");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_log.Fatal (ex.Message);
|
||||||
|
_log.Debug (ex.ToString ());
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
_log.Fatal (ex.Message);
|
_log.Fatal (ex.Message);
|
||||||
_log.Debug (ex.ToString ());
|
_log.Debug (ex.ToString ());
|
||||||
|
Loading…
Reference in New Issue
Block a user