def removeListener(self, listener): """ Remove a TaurusListener from the listeners list. If polling enabled and it is the last element then stop the polling timer. If the listener is not registered nothing happens.""" ret = TaurusAttribute.removeListener(self, listener) if ret and not self.hasListeners(): self._deactivatePolling() self.__subscription_state = SubscriptionState.Unsubscribed return ret
def removeListener(self, listener): """ Remove a TaurusListener from the listeners list. If polling enabled and it is the last element then stop the polling timer. If the listener is not registered nothing happens.""" ret = TaurusAttribute.removeListener(self, listener) if ret and not self.hasListeners(): self._deactivatePolling() self.__subscription_state = SubscriptionState.Unsubscribed return ret
def removeListener(self, listener): """ Remove a TaurusListener from the listeners list. If polling enabled and it is the last element the stop the polling timer. If the listener is not registered nothing happens.""" ret = TaurusAttribute.removeListener(self, listener) if not ret: return ret if self.hasListeners(): return ret if self.__subscription_state != SubscriptionState.Unsubscribed: self._unsubscribeEvents() return ret
def removeListener(self, listener): """ Remove a TaurusListener from the listeners list. If polling enabled and it is the last element the stop the polling timer. If the listener is not registered nothing happens.""" ret = TaurusAttribute.removeListener(self, listener) if not ret: return ret if self.hasListeners(): return ret if self.__subscription_state != SubscriptionState.Unsubscribed: self._unsubscribeEvents() return ret