[Modify] Polish it
This commit is contained in:
parent
2d0a35c690
commit
e65f761fbd
@ -961,17 +961,8 @@ namespace WebSocketSharp.Server
|
||||
private void start ()
|
||||
{
|
||||
lock (_sync) {
|
||||
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;
|
||||
}
|
||||
|
||||
_services.Start ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user