CURATOR-239 - Interrupting current thread after catching InterruptedException
Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/3e3a8103 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/3e3a8103 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/3e3a8103 Branch: refs/heads/master Commit: 3e3a810312f996874c327f42c24aa5b10a91161a Parents: 6e8c108 Author: Leandro Nunes <leandro.nu...@blip.pt> Authored: Fri Jul 24 00:18:18 2015 +0100 Committer: Leandro Nunes <leandro.nu...@blip.pt> Committed: Fri Jul 24 00:18:18 2015 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/curator/retry/RetryForever.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/3e3a8103/curator-client/src/main/java/org/apache/curator/retry/RetryForever.java ---------------------------------------------------------------------- diff --git a/curator-client/src/main/java/org/apache/curator/retry/RetryForever.java b/curator-client/src/main/java/org/apache/curator/retry/RetryForever.java index 27444b9..89f0276 100644 --- a/curator-client/src/main/java/org/apache/curator/retry/RetryForever.java +++ b/curator-client/src/main/java/org/apache/curator/retry/RetryForever.java @@ -52,6 +52,7 @@ public class RetryForever implements RetryPolicy catch (InterruptedException e) { log.warn("Error occurred while sleeping", e); + Thread.currentThread().interrupt(); } return true; }