Skip to content

Commit

Permalink
Better termination of queuetimer on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Boreeas committed Sep 8, 2014
1 parent 30352b3 commit 7869ea3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ public void run() {
}


} catch (AccountManagementException ex) {
this.ex = ex;
isError = true;
latch.countDown();
} catch (RequestException ex) {
int type = ex.getErrorType().code;
if ((type >= RequestException.ErrorType.CLOUDFLARE_GENERIC.code && type <= RequestException.ErrorType.CLOUDFLARE_SSL_HANDSHAKE_FAILED.code)
Expand All @@ -131,6 +127,10 @@ public void run() {
isError = true;
latch.countDown();
}
} catch (RuntimeException ex) {
this.ex = ex;
isError = true;
latch.countDown();
}
}
}
Expand Down

0 comments on commit 7869ea3

Please sign in to comment.