This closes #401

This commit is contained in:
jbertram 2016-02-23 13:36:45 -06:00
commit 5abf5d3fca
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
}