mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

floblanc
30.38.2008 43a8d886b8ab0da2358cd1ddc820cd5e5c06478f
opends/src/server/org/opends/server/core/networkgroups/ResourceLimits.java
@@ -87,6 +87,9 @@
  // The lock for the counter numConnections and the map connectionsPerIpMap
  Object connMutex = new Object();
  // The current configuration
  private NetworkGroupResourceLimitsCfg config = null;
  /**
   * Constructor.
   *
@@ -111,6 +114,10 @@
    numConnections = 0;
    connectionsPerIpMap = new HashMap<String, Integer>();
    isConfigured = false;
    if (config != null) {
      config.removeChangeListener(this);
      config = null;
    }
  }
  /**
@@ -131,7 +138,10 @@
      minSearchSubstringLength = resourcesCfg.getMinSubstringLength();
      connectionsPerIpMap = new HashMap<String, Integer>();
      resourcesCfg.addChangeListener(this);
      if (config == null) {
        resourcesCfg.addChangeListener(this);
      }
      config = resourcesCfg;
      isConfigured = true;
    } else {
      resetLimits();