[Modify] Polish it

This commit is contained in:
sta 2021-09-05 20:38:22 +09:00
parent e326553b35
commit f657650306

View File

@ -1205,18 +1205,6 @@ namespace WebSocketSharp.Server
/// </exception>
public void Start ()
{
if (_state == ServerState.Start) {
_log.Info ("The server has already started.");
return;
}
if (_state == ServerState.ShuttingDown) {
_log.Warn ("The server is shutting down.");
return;
}
ServerSslConfiguration sslConfig = null;
if (_secure) {
@ -1230,6 +1218,18 @@ namespace WebSocketSharp.Server
}
}
if (_state == ServerState.Start) {
_log.Info ("The server has already started.");
return;
}
if (_state == ServerState.ShuttingDown) {
_log.Warn ("The server is shutting down.");
return;
}
start (sslConfig);
}