Exemplo n.º 1
0
 def reactor_stop(*args):
     '''Shutdown the twisted reactor main loop
     '''
     if reactor.threadpool:
         Logger.info("Support: Stooping twisted threads")
         reactor.threadpool.stop()
     Logger.info("Support: Shutting down twisted reactor")
     reactor._mainLoopShutdown()
Exemplo n.º 2
0
 def reactor_stop(*args):
     '''Shutdown the twisted reactor main loop
     '''
     if reactor.threadpool:
         Logger.info("Support: Stooping twisted threads")
         reactor.threadpool.stop()
     Logger.info("Support: Shutting down twisted reactor")
     reactor._mainLoopShutdown()
Exemplo n.º 3
0
    def reactor_stop(*args):
        '''Shutdown the twisted reactor main loop
        '''
        if reactor.threadpool:
            Logger.info("Support: Stooping twisted threads")
            reactor.threadpool.stop()
        Logger.info("Support: Shutting down twisted reactor")
        reactor._mainLoopShutdown()
        try:
            reactor.stop()
        except ReactorNotRunning:
            pass

        import sys
        sys.modules.pop('twisted.internet.reactor', None)
Exemplo n.º 4
0
    def reactor_stop(*args):
        '''Shutdown the twisted reactor main loop
        '''
        if reactor.threadpool:
            Logger.info("Support: Stooping twisted threads")
            reactor.threadpool.stop()
        Logger.info("Support: Shutting down twisted reactor")
        reactor._mainLoopShutdown()
        try:
            reactor.stop()
        except ReactorNotRunning:
            pass

        import sys
        sys.modules.pop('twisted.internet.reactor', None)
Exemplo n.º 5
0
 def reactor_stop():
     if reactor.threadpool:  # @UndefinedVariable
         log.info('stopping twisted threads')
         reactor.threadpool.stop()  # @UndefinedVariable
     log.info('shutting down twisted reactor')
     reactor._mainLoopShutdown()  # @UndefinedVariable