Ejemplo n.º 1
0
    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')
Ejemplo n.º 2
0
    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')