(self, sender)
return True
Stop twisted's reactor when the application is shutdown.
Stop twisted's reactor when the application is shutdown.
Stop twisted s reactor when the application is shutdown .
def applicationShouldTerminate_(self, sender):
        """
        Stop twisted's reactor when the application is shutdown.
        """
        log.msg("stopping mimic reactor")
        if reactor.running:
            reactor.addSystemEventTrigger(
                "after", "shutdown", AppHelper.stopEventLoop)
            reactor.stop()
            return False
        return True
def applicationShouldTerminate_ ( self , sender ) : log . msg ( "stopping mimic reactor" ) if reactor . running : reactor . addSystemEventTrigger ( "after" , "shutdown" , AppHelper . stopEventLoop ) reactor . stop ( ) return False return True