Skip to content

Commit 2d0a35c

Browse files
committed
[Modify] Polish it
1 parent a79b966 commit 2d0a35c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

websocket-sharp/Server/HttpServer.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,17 +1310,8 @@ public void Start ()
13101310
throw new InvalidOperationException (msg);
13111311
}
13121312

1313-
if (_state == ServerState.Start) {
1314-
_log.Info ("The server has already started.");
1315-
1316-
return;
1317-
}
1318-
1319-
if (_state == ServerState.ShuttingDown) {
1320-
_log.Warn ("The server is shutting down.");
1321-
1313+
if (_state == ServerState.Start || _state == ServerState.ShuttingDown)
13221314
return;
1323-
}
13241315

13251316
start ();
13261317
}

0 commit comments

Comments
 (0)