From 2bf1be7a091a9d72e1c917d67b6fe9094c436db8 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 24 Mar 2016 15:11:20 +0100 Subject: [PATCH] define signal before starting zc thread --- Shared/lib/python3.4/site-packages/zeroconf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shared/lib/python3.4/site-packages/zeroconf.py b/Shared/lib/python3.4/site-packages/zeroconf.py index 2d67563..6d7078c 100644 --- a/Shared/lib/python3.4/site-packages/zeroconf.py +++ b/Shared/lib/python3.4/site-packages/zeroconf.py @@ -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