[Modify] Polish it

This commit is contained in:
sta 2021-07-02 20:38:58 +09:00
parent 6c12b638fd
commit 34868bed04

View File

@ -1052,27 +1052,32 @@ namespace WebSocketSharp.Server
{
if (_state == ServerState.Ready) {
_log.Info ("The server is not started.");
return;
}
if (_state == ServerState.ShuttingDown) {
_log.Info ("The server is shutting down.");
return;
}
if (_state == ServerState.Stop) {
_log.Info ("The server has already stopped.");
return;
}
lock (_sync) {
if (_state == ServerState.ShuttingDown) {
_log.Info ("The server is shutting down.");
return;
}
if (_state == ServerState.Stop) {
_log.Info ("The server has already stopped.");
return;
}