fixing regression caused by #397
This commit is contained in:
parent
89aafa44bb
commit
c4760488e3
|
@ -283,13 +283,12 @@ public class SharedNothingLiveActivation extends LiveActivation {
|
||||||
locator.setReconnectAttempts(0);
|
locator.setReconnectAttempts(0);
|
||||||
try (ClientSessionFactoryInternal factory = locator.connectNoWarnings()) {
|
try (ClientSessionFactoryInternal factory = locator.connectNoWarnings()) {
|
||||||
// Just try connecting
|
// Just try connecting
|
||||||
|
listener.latch.await(5, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
catch (Exception notConnected) {
|
catch (Exception notConnected) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
listener.latch.await(5, TimeUnit.SECONDS);
|
|
||||||
|
|
||||||
return listener.isNodePresent;
|
return listener.isNodePresent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue