def start(self):
     self.start_time = time.time()
     self.logger.info('Starting...')
     self._do_gc(True)
     # FIXME: Sometimes, the Instant surrogates lose messages when
     #        reconnecting while sending a message. A "proper" transparent
     #        reconnect implementation would fix this; we work around the
     #        consequence of log loading being stuck forever (because of
     #        unresolved ID mappings) until then.
     basebot.spawn_thread(self._gc_thread)
     basebot.spawn_thread(self.scheduler.run)
Example #2
0
 def startup(self):
     basebot.spawn_thread(waiter, self, self.cond)
     basebot.ThreadedBot.startup(self)
Example #3
0
 def main(self):
     basebot.spawn_thread(waiter, self, self.cond)
     basebot.BaseBot.main(self)