From 34868bed04815f60ead057213f1bf2ef963dbb8e Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 2 Jul 2021 20:38:58 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Server/HttpServer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index 2840c848..ff7ef66b 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -1052,27 +1052,32 @@ namespace WebSocketSharp.Server { if (_state == ServerState.Ready) { _log.Info ("The server is not started."); + return; } if (_state == ServerState.ShuttingDown) { _log.Info ("The server is shutting down."); + return; } if (_state == ServerState.Stop) { _log.Info ("The server has already stopped."); + return; } lock (_sync) { if (_state == ServerState.ShuttingDown) { _log.Info ("The server is shutting down."); + return; } if (_state == ServerState.Stop) { _log.Info ("The server has already stopped."); + return; }