curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [38/45] curator git commit: return false if interrupted
Date Tue, 01 Sep 2015 13:28:30 GMT
return false if interrupted


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/38011678
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/38011678
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/38011678

Branch: refs/heads/CURATOR-248
Commit: 38011678c4faebb1cd9388e56f0d13d29862c609
Parents: 35b2063
Author: randgalt <randgalt@apache.org>
Authored: Mon Aug 31 07:19:21 2015 -0700
Committer: randgalt <randgalt@apache.org>
Committed: Mon Aug 31 07:19:21 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/curator/retry/RetryForever.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/38011678/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 89f0276..59f3d0d 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
@@ -51,8 +51,9 @@ public class RetryForever implements RetryPolicy
         }
         catch (InterruptedException e)
         {
-            log.warn("Error occurred while sleeping", e);
             Thread.currentThread().interrupt();
+            log.warn("Error occurred while sleeping", e);
+            return false;
         }
         return true;
     }


Mime
View raw message