def start(self, result=None): if result: LOG.debug("data maintenance failed: %s", result) LOG.debug("starting data maintenance") d = LoopingCall(self.maintenance).start(self.maintenance_interval) d.addBoth(self.start)
def main(self): logging.debug('Running gamespace main function') d = LoopingCall(main_game_loop, (self)).start(1. / self.tick) d.addBoth(self.p) reactor.run()