Repository: curator
Updated Branches:
  refs/heads/CURATOR-147 ae6f4ecb6 -> b66e9b6a7


CURATOR-147 - Fixed up isStarted() call


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

Branch: refs/heads/CURATOR-147
Commit: b66e9b6a7afbbb9fc0a95adada26c9f774a54c13
Parents: ae6f4ec
Author: Cameron McKenzie <[email protected]>
Authored: Mon Sep 15 16:57:25 2014 +1000
Committer: Cameron McKenzie <[email protected]>
Committed: Mon Sep 15 16:57:25 2014 +1000

----------------------------------------------------------------------
 .../java/org/apache/curator/framework/imps/CreateBuilderImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/b66e9b6a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
 
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
index 70b92ab..d74cc56 100644
--- 
a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
+++ 
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
@@ -771,7 +771,7 @@ class CreateBuilderImpl implements CreateBuilder, 
BackgroundOperation<PathAndByt
      */
     private void findAndDeleteProtectedNodeInBackground(String path, String 
protectedId, FindProtectedNodeCB callback)
     {
-        if ( client.isStarted() )
+        if ( client.getState() == CuratorFrameworkState.STARTED )
         {
             if ( callback == null )
             {

Reply via email to