platypush/backend/__init__.py
def unregister_service(self):
        """
        Unregister the Zeroconf service configuration if available.
        """
        if self.zeroconf and self.zeroconf_info:
            try:
                self.zeroconf.unregister_service(self.zeroconf_info)
            except Exception as e:
                self.logger.warning('Could not register Zeroconf service {}: {}: {}'.format(
                    self.zeroconf_info.name, type(e).__name__, str(e)))

            if self.zeroconf:
                self.zeroconf.close()

            if self.zeroconf_info:
                self.bus.post(ZeroconfServiceRemovedEvent(service_type=self.zeroconf_info.type,
                                                          service_name=self.zeroconf_info.name))
            else:
                self.bus.post(ZeroconfServiceRemovedEvent(service_type=None, service_name=None))

            self.zeroconf_info = None
            self.zeroconf = None

        Unregister the Zeroconf service configuration if available.
        
Unregister the Zeroconf service configuration if available.
Unregister the Zeroconf service configuration if available .
def unregister_service(self):
        if self.zeroconf and self.zeroconf_info:
            try:
                self.zeroconf.unregister_service(self.zeroconf_info)
            except Exception as e:
                self.logger.warning('Could not register Zeroconf service {}: {}: {}'.format(
                    self.zeroconf_info.name, type(e).__name__, str(e)))
            if self.zeroconf:
                self.zeroconf.close()
            if self.zeroconf_info:
                self.bus.post(ZeroconfServiceRemovedEvent(service_type=self.zeroconf_info.type,
                                                          service_name=self.zeroconf_info.name))
            else:
                self.bus.post(ZeroconfServiceRemovedEvent(service_type=None, service_name=None))
            self.zeroconf_info = None
            self.zeroconf = None
def unregister_service ( self ) : if self . zeroconf and self . zeroconf_info : try : self . zeroconf . unregister_service ( self . zeroconf_info ) except Exception as e : self . logger . warning ( 'Could not register Zeroconf service {}: {}: {}' . format ( self . zeroconf_info . name , type ( e ) . __name__ , str ( e ) ) ) if self . zeroconf : self . zeroconf . close ( ) if self . zeroconf_info : self . bus . post ( ZeroconfServiceRemovedEvent ( service_type = self . zeroconf_info . type , service_name = self . zeroconf_info . name ) ) else : self . bus . post ( ZeroconfServiceRemovedEvent ( service_type = None , service_name = None ) ) self . zeroconf_info = None self . zeroconf = None
Unregister the Zeroconf service configuration if available.
Unregister the Zeroconf service configuration if available .
"""
        Unregister the Zeroconf service configuration if available.
        """
self