@@ -415,19 +415,21 @@ namespace WebSocketSharp.Net
 | 
			
		||||
 | 
			
		||||
    private void cleanupConnections ()
 | 
			
		||||
    {
 | 
			
		||||
      HttpConnection[] conns = null;
 | 
			
		||||
      lock (_connectionsSync) {
 | 
			
		||||
        if (_connections.Count == 0)
 | 
			
		||||
          return;
 | 
			
		||||
 | 
			
		||||
        // Need to copy this since closing will call the RemoveConnection method.
 | 
			
		||||
        var keys = _connections.Keys;
 | 
			
		||||
        var conns = new HttpConnection[keys.Count];
 | 
			
		||||
        conns = new HttpConnection[keys.Count];
 | 
			
		||||
        keys.CopyTo (conns, 0);
 | 
			
		||||
        _connections.Clear ();
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      for (var i = conns.Length - 1; i >= 0; i--)
 | 
			
		||||
        conns[i].Close (true);
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void cleanupContextRegistry ()
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user