summaryrefslogtreecommitdiff
path: root/kazoo/recipe/watchers.py
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2012-09-26 18:54:50 +0200
committerHanno Schlichting <hanno@hannosch.eu>2012-09-26 18:54:50 +0200
commit201f1dbdccb78086129bf79edb5cdd57b165e2ec (patch)
tree831747207a20ad75f76d32239b723d14e3053390 /kazoo/recipe/watchers.py
parent2008369f073c3199cf6b3a86c1f061a0070e9aa3 (diff)
downloadkazoo-201f1dbdccb78086129bf79edb5cdd57b165e2ec.tar.gz
use handler specific sleep function
Diffstat (limited to 'kazoo/recipe/watchers.py')
-rw-r--r--kazoo/recipe/watchers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kazoo/recipe/watchers.py b/kazoo/recipe/watchers.py
index 4256bed..c2f08d0 100644
--- a/kazoo/recipe/watchers.py
+++ b/kazoo/recipe/watchers.py
@@ -298,7 +298,7 @@ class PatientChildrenWatch(object):
self.children = self.client.retry(
self.client.get_children, self.path,
partial(self._children_watcher, async_result))
- time.sleep(self.time_boundary)
+ self.client.handler.sleep_func(self.time_boundary)
if self.children_changed.is_set():
self.children_changed.clear()