[Python-modules-commits] [python-zeroconf] 03/08: fix issue #23 race-condition on ServiceBrowser startup
Ruben Undheim
rubund-guest at moszumanska.debian.org
Wed Apr 13 19:10:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch upstream
in repository python-zeroconf.
commit 30bd44f04f94a9b26622a7213dd9950ae57df21c
Author: Giles <gbiddison at synthego.com>
Date: Wed Nov 18 14:26:52 2015 -0800
fix issue #23 race-condition on ServiceBrowser startup
---
zeroconf.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/zeroconf.py b/zeroconf.py
index c1601d2..9d82ea6 100644
--- a/zeroconf.py
+++ b/zeroconf.py
@@ -972,7 +972,6 @@ class ServiceBrowser(threading.Thread):
self.done = False
self.zc.add_listener(self, DNSQuestion(self.type, _TYPE_PTR, _CLASS_IN))
- self.start()
self._service_state_changed = Signal()
@@ -996,6 +995,8 @@ class ServiceBrowser(threading.Thread):
for h in handlers:
self.service_state_changed.register_handler(h)
+ self.start()
+
@property
def service_state_changed(self):
return self._service_state_changed.registration_interface
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-zeroconf.git
More information about the Python-modules-commits
mailing list