[Modify] Polish it
This commit is contained in:
parent
a79b966144
commit
2d0a35c690
@ -1310,17 +1310,8 @@ namespace WebSocketSharp.Server
|
|||||||
throw new InvalidOperationException (msg);
|
throw new InvalidOperationException (msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_state == ServerState.Start) {
|
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
|
||||||
_log.Info ("The server has already started.");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if (_state == ServerState.ShuttingDown) {
|
|
||||||
_log.Warn ("The server is shutting down.");
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
start ();
|
start ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user