diff options
author | Bill Sanders <billysanders@gmail.com> | 2017-06-03 12:06:57 -0700 |
---|---|---|
committer | Bill Sanders <billysanders@gmail.com> | 2017-06-03 19:41:59 -0700 |
commit | 88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d (patch) | |
tree | 9c7627e3d93ba87d09c407af6a0a56b3110c0240 | |
parent | bd1ee41fd1d6996a22ca719e74463f16865af259 (diff) | |
download | kazoo-88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d.tar.gz |
fix: add missed parens to LockingQueue function call.
-rw-r--r-- | kazoo/recipe/queue.py | 2 |
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( |