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
1 changed files with 1 additions and 1 deletions

View File

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