commit | d4ee4ce2e8a48dfac6a2c88ae65df8bacf053aef | [log] [tgz] |
---|---|---|
author | Hugo Arès <hugo.ares@ericsson.com> | Thu Jul 14 08:04:28 2016 -0400 |
committer | Hugo Arès <hugo.ares@ericsson.com> | Thu Jul 14 10:59:17 2016 -0400 |
tree | 979db396bd432a0bef76352c8d331f5304bd3f69 | |
parent | ae2304ce0d983dfacc850815a0a3c9638bcd659e [diff] |
Stop retrying if thread is interrupted InterruptedException should always be honored. Change-Id: I64bfdb3840bf4fff438b88712dbd1400bd507418
diff --git a/src/main/java/com/ericsson/gerrit/plugins/evictcache/HttpClientProvider.java b/src/main/java/com/ericsson/gerrit/plugins/evictcache/HttpClientProvider.java index 1653223..df42800 100644 --- a/src/main/java/com/ericsson/gerrit/plugins/evictcache/HttpClientProvider.java +++ b/src/main/java/com/ericsson/gerrit/plugins/evictcache/HttpClientProvider.java
@@ -107,7 +107,8 @@ try { Thread.sleep(cfg.getRetryInterval()); } catch (InterruptedException e) { - log.debug("Ignoring InterruptedException", e); + Thread.currentThread().interrupt(); + return false; } return true; }