define signal before starting zc thread

This commit is contained in:
j 2016-03-24 15:11:20 +01:00
parent 9d2628be78
commit 2bf1be7a09
1 changed files with 2 additions and 1 deletions

View File

@ -971,10 +971,11 @@ class ServiceBrowser(threading.Thread):
self.done = False
self._service_state_changed = Signal()
self.zc.add_listener(self, DNSQuestion(self.type, _TYPE_PTR, _CLASS_IN))
self.start()
self._service_state_changed = Signal()
if hasattr(handlers, 'add_service'):
listener = handlers