Skip to content

Commit a4c482f

Browse files
committed
[Modify] Remove it
1 parent 2904c08 commit a4c482f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

websocket-sharp/Server/WebSocketSessionManager.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -392,25 +392,6 @@ private bool canSet ()
392392
return _state == ServerState.Ready || _state == ServerState.Stop;
393393
}
394394

395-
private bool canSet (out string message)
396-
{
397-
message = null;
398-
399-
if (_state == ServerState.Start) {
400-
message = "The service has already started.";
401-
402-
return false;
403-
}
404-
405-
if (_state == ServerState.ShuttingDown) {
406-
message = "The service is shutting down.";
407-
408-
return false;
409-
}
410-
411-
return true;
412-
}
413-
414395
private static string createID ()
415396
{
416397
return Guid.NewGuid ().ToString ("N");

0 commit comments

Comments
 (0)