Beispiel #1
0
 def reactorLoop(self):
     """
     Twisted main loop
     """
     reactor.startRunning()
     while reactor.running:
         try:
             while reactor.running:
                 reactor.runUntilCurrent()
                 timeout = reactor.timeout()
                 reactor.doIteration(timeout)
         except Exception:
             if reactor.running:
                 self.log.exception("Unexpected error in main loop.")
Beispiel #2
0
 def reactorLoop(self):
     """
     Twisted main loop
     """
     reactor.startRunning()
     while reactor.running:
         try:
             while reactor.running:
                 reactor.runUntilCurrent()
                 timeout = reactor.timeout()
                 reactor.doIteration(timeout)
         except Exception:
             if reactor.running:
                 self.log.exception("Unexpected error in main loop.")