def run(self): # Subscribe to endpoints IPEndpoint.subscribe(self.session) while not self._exit: if IPEndpoint.has_events(self.session): try: self.handle_endpoint_event() except ConnectionError: logging.error('Could not handle endpoint event due to ConnectionError')
def run(self): # Subscribe to endpoints IPEndpoint.subscribe(self.session) while not self._exit: if IPEndpoint.has_events(self.session): try: self.handle_endpoint_event() except ConnectionError: logging.error('Could not handle endpoint event due to ConnectionError')