ARTEMIS-2803 fix semantic change

This commit is contained in:
Justin Bertram 2020-06-15 12:04:17 -05:00 committed by Clebert Suconic
parent 9cb8c9d459
commit 9d4ec41935
1 changed files with 2 additions and 2 deletions

View File

@ -359,8 +359,8 @@ public class ClusterController implements ActiveMQComponent {
clusterConnection = server.getClusterManager().getDefaultConnection(null);
}
//if there is no default cluster connection then just ignore the packet with a log message
if (clusterConnection == null) {
//if there is no default cluster connection and security is enabled then just ignore the packet with a log message
if (clusterConnection == null && server.getConfiguration().isSecurityEnabled()) {
ActiveMQServerLogger.LOGGER.failedToFindClusterConnection(packet.toString());
return;
}