service_type and service_name are actually needed even if empty

This commit is contained in:
Fabio Manganiello 2020-08-20 00:48:01 +02:00
parent d8f7b15111
commit a0d97c0f18

View file

@ -372,7 +372,7 @@ class Backend(Thread, EventGenerator):
self.bus.post(ZeroconfServiceRemovedEvent(service_type=self.zeroconf_info.type, self.bus.post(ZeroconfServiceRemovedEvent(service_type=self.zeroconf_info.type,
service_name=self.zeroconf_info.name)) service_name=self.zeroconf_info.name))
else: else:
self.bus.post(ZeroconfServiceRemovedEvent()) self.bus.post(ZeroconfServiceRemovedEvent(service_type=None, service_name=None))
self.zeroconf_info = None self.zeroconf_info = None
self.zeroconf = None self.zeroconf = None