[Modify] Polish it
This commit is contained in:
parent
e326553b35
commit
f657650306
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user