def run(self):
        """
        Run the Node Server. Exit when triggered. Generally, this method should
        not be overwritten.
        """
        self.running = True
        self.poly.connect()
        counter = 0
        try:
            while self.running:
                time.sleep(self.shortpoll)
                self.poll()
                counter += self.shortpoll

                if counter >= self.longpoll:
                    self.long_poll()
                    counter = 0

        except __HOLE__:
            self.on_exit()

        self.poly.exit()
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/nodeserver_api.py/NodeServer.run