[Modify] Add a check
This commit is contained in:
		@@ -451,6 +451,9 @@ namespace WebSocketSharp.Net
 | 
			
		||||
 | 
			
		||||
      List<HttpConnection> conns = null;
 | 
			
		||||
      lock (_unregisteredSync) {
 | 
			
		||||
        if (_unregistered.Count == 0)
 | 
			
		||||
          return;
 | 
			
		||||
 | 
			
		||||
        conns = new List<HttpConnection> (_unregistered.Keys);
 | 
			
		||||
        _unregistered.Clear ();
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user