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.
| | |
| | | { |
| | | 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)) |
| | | { |