lib/zk/locker/locker_base.rb in zk-1.2.0 vs lib/zk/locker/locker_base.rb in zk-1.3.0
- old
+ new
@@ -254,10 +254,15 @@
end
def cleanup_lock_path!
logger.debug { "removing lock path #{@lock_path}" }
zk.delete(@lock_path)
- zk.delete(root_lock_path) rescue NotEmpty
+
+ begin
+ zk.delete(root_lock_path)
+ rescue NotEmpty
+ end
+
@lock_path = nil
end
end # LockerBase
end # Locker
end # ZK