summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Sanders <billysanders@gmail.com>2017-06-03 12:06:57 -0700
committerBill Sanders <billysanders@gmail.com>2017-06-03 19:41:59 -0700
commit88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d (patch)
tree9c7627e3d93ba87d09c407af6a0a56b3110c0240
parentbd1ee41fd1d6996a22ca719e74463f16865af259 (diff)
downloadkazoo-88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d.tar.gz
fix: add missed parens to LockingQueue function call.
-rw-r--r--kazoo/recipe/queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kazoo/recipe/queue.py b/kazoo/recipe/queue.py
index 3db465c..df46422 100644
--- a/kazoo/recipe/queue.py
+++ b/kazoo/recipe/queue.py
@@ -271,7 +271,7 @@ class LockingQueue(BaseQueue):
:rtype: bool
"""
- if self.processing_element is not None and self.holds_lock:
+ if self.processing_element is not None and self.holds_lock():
id_, value = self.processing_element
with self.client.transaction() as transaction:
transaction.delete("{path}/{id}".format(