Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B70B7172E0 for ; Tue, 1 Sep 2015 02:48:18 +0000 (UTC) Received: (qmail 40476 invoked by uid 500); 1 Sep 2015 02:48:18 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 40404 invoked by uid 500); 1 Sep 2015 02:48:18 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 40268 invoked by uid 99); 1 Sep 2015 02:48:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 02:48:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3ABC7DFCC0; Tue, 1 Sep 2015 02:48:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Date: Tue, 01 Sep 2015 02:48:19 -0000 Message-Id: <10fd252f28534c07a4f57bd611022387@git.apache.org> In-Reply-To: <1dcb4215aadb47f39f8cce82d8799d6f@git.apache.org> References: <1dcb4215aadb47f39f8cce82d8799d6f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/14] curator git commit: CURATOR-239 - Interrupting current thread after catching InterruptedException 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/CURATOR-247 Commit: 3e3a810312f996874c327f42c24aa5b10a91161a Parents: 6e8c108 Author: Leandro Nunes Authored: Fri Jul 24 00:18:18 2015 +0100 Committer: Leandro Nunes 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; }