define signal before starting zc thread
This commit is contained in:
parent
9d2628be78
commit
2bf1be7a09
1 changed files with 2 additions and 1 deletions
|
@ -971,10 +971,11 @@ class ServiceBrowser(threading.Thread):
|
||||||
|
|
||||||
self.done = False
|
self.done = False
|
||||||
|
|
||||||
|
self._service_state_changed = Signal()
|
||||||
|
|
||||||
self.zc.add_listener(self, DNSQuestion(self.type, _TYPE_PTR, _CLASS_IN))
|
self.zc.add_listener(self, DNSQuestion(self.type, _TYPE_PTR, _CLASS_IN))
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
self._service_state_changed = Signal()
|
|
||||||
|
|
||||||
if hasattr(handlers, 'add_service'):
|
if hasattr(handlers, 'add_service'):
|
||||||
listener = handlers
|
listener = handlers
|
||||||
|
|
Loading…
Reference in a new issue