Skip to content

Commit

Permalink
[Modify] Remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
sta committed Nov 9, 2021
1 parent 2904c08 commit a4c482f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions websocket-sharp/Server/WebSocketSessionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,25 +392,6 @@ private bool canSet ()
return _state == ServerState.Ready || _state == ServerState.Stop;
}

private bool canSet (out string message)
{
message = null;

if (_state == ServerState.Start) {
message = "The service has already started.";

return false;
}

if (_state == ServerState.ShuttingDown) {
message = "The service is shutting down.";

return false;
}

return true;
}

private static string createID ()
{
return Guid.NewGuid ().ToString ("N");
Expand Down

0 comments on commit a4c482f

Please sign in to comment.