summaryrefslogtreecommitdiff
path: root/zake
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-08-30 23:23:14 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-08-30 23:23:14 -0700
commit93c80a12cf4598808d7593751debc78cf5f8e5b7 (patch)
treeafa03e514a4e1e460b3744f23b0e2f6488fda434 /zake
parenteb61644804da41285f7150f14b29d9337fbc5203 (diff)
downloadzake-93c80a12cf4598808d7593751debc78cf5f8e5b7.tar.gz
Just use the clients property which already locks itself
Diffstat (limited to 'zake')
-rw-r--r--zake/fake_storage.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/zake/fake_storage.py b/zake/fake_storage.py
index 09e4cb4..99fd122 100644
--- a/zake/fake_storage.py
+++ b/zake/fake_storage.py
@@ -171,9 +171,7 @@ class FakeStorage(object):
return len(removals)
def inform(self, client, child_watches, data_watches, inform_self=True):
- with self._client_lock:
- clients = set(self._clients)
- for other_client in clients:
+ for other_client in self.clients:
if not inform_self and other_client is client:
continue
other_client.fire_child_watches(child_watches)