From c4760488e366e4d00d90e53e57bd24d4bb4f097a Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Tue, 23 Feb 2016 14:16:32 -0500 Subject: [PATCH] fixing regression caused by #397 --- .../artemis/core/server/impl/SharedNothingLiveActivation.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedNothingLiveActivation.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedNothingLiveActivation.java index 53d1c14ad8..789e864a16 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedNothingLiveActivation.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/SharedNothingLiveActivation.java @@ -283,13 +283,12 @@ public class SharedNothingLiveActivation extends LiveActivation { locator.setReconnectAttempts(0); try (ClientSessionFactoryInternal factory = locator.connectNoWarnings()) { // Just try connecting + listener.latch.await(5, TimeUnit.SECONDS); } catch (Exception notConnected) { return false; } - listener.latch.await(5, TimeUnit.SECONDS); - return listener.isNodePresent; } }