[Modify] Add it
This commit is contained in:
		@@ -348,6 +348,23 @@ namespace WebSocketSharp.Server
 | 
			
		||||
      return ret;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private bool canSet (out string message)
 | 
			
		||||
    {
 | 
			
		||||
      message = null;
 | 
			
		||||
 | 
			
		||||
      if (_state == ServerState.Start) {
 | 
			
		||||
        message = "The server has already started.";
 | 
			
		||||
        return false;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (_state == ServerState.ShuttingDown) {
 | 
			
		||||
        message = "The server is shutting down.";
 | 
			
		||||
        return false;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #endregion
 | 
			
		||||
 | 
			
		||||
    #region Internal Methods
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user