[Modify] Polish it

This commit is contained in:
sta 2022-01-04 22:09:38 +09:00
parent a79b966144
commit 2d0a35c690

View File

@ -1310,17 +1310,8 @@ namespace WebSocketSharp.Server
throw new InvalidOperationException (msg);
}
if (_state == ServerState.Start) {
_log.Info ("The server has already started.");
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
return;
}
if (_state == ServerState.ShuttingDown) {
_log.Warn ("The server is shutting down.");
return;
}
start ();
}