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

Ludovic Poitou
04.55.2013 80734787b57a4dc6c397cdf2ab4d5e06451f2bc7
Fix regression introduced by the previous commit, which cause the JMXPrivilegeTests to fail. 
Note that these tests may still fail some time to time, since they expect the JMX connection handler to start in less than 1 second, which might be low on a single cpu VM.
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/protocols/jmx/JmxConnectionHandler.java
@@ -407,9 +407,9 @@
  {
    JMXConnectionHandlerCfg config = (JMXConnectionHandlerCfg) configuration;
    if (currentConfig == null ||
    if ((currentConfig == null ||
        (!currentConfig.isEnabled() && config.isEnabled()) ||
        currentConfig.getListenPort() != config.getListenPort() &&
        currentConfig.getListenPort() != config.getListenPort()) &&
        !isPortConfigurationAcceptable(String.valueOf(config.dn()),
          config.getListenPort(), unacceptableReasons))
    {