Skip to content

Commit

Permalink
CURATOR-720: Stop retry if client is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
HoustonPutman committed Dec 4, 2024
1 parent 6a27ff0 commit 89f19cf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ void removeParentWatcher(Watcher watcher) {
public void internalBlockUntilConnectedOrTimedOut() throws InterruptedException {
long waitTimeMs = connectionTimeoutMs;
while (!state.isConnected() && (waitTimeMs > 0)) {
if (!started.get()) {
throw new IllegalStateException("Client is not started");
}
final CountDownLatch latch = new CountDownLatch(1);
Watcher tempWatcher = new Watcher() {
@Override
Expand Down

0 comments on commit 89f19cf

Please sign in to comment.