def check_activity(self):
        if (time.time() > self.keep_alive_time) or not self.keep_alive:
            print("Shutting down due to inactivity")
            self.keep_alive = False
            sys.exit()
        else:
            self.timer = Timer(self.IDLE_POLL_TIME, self.check_activity)
            self.timer.start()
dataset/ETHPy150Open xraypy/xraylarch/lib/xmlrpc_server.py/LarchServer.check_activity/original