[Modify] Polish it

This commit is contained in:
sta 2021-12-20 21:35:00 +09:00
parent b96e35d164
commit 0ed6179c00

View File

@ -1187,17 +1187,8 @@ namespace WebSocketSharp.Server
}
}
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 (sslConfig);
}