Esempio n. 1
0
 def shutdown(self):
     logging.info("Shutting down video conversions manager")
     conversions.conversion_manager.shutdown()
     logging.info("Shutting down Downloader...")
     downloader.shutdown_downloader(self.downloader_shutdown)
     try:
         logging.info("Shutting down worker process.")
         workerprocess.shutdown()
         if app.device_manager is not None:
             logging.info("Shutting down device manager")
             app.device_manager.shutdown()
         if app.sharing_manager is not None:
             logging.info("Shutting down Sharing Manager")
             app.sharing_manager.shutdown()
         if app.sharing_tracker is not None:
             logging.info("Shutting down Sharing Tracker")
             app.sharing_tracker.stop_tracking()
     except StandardError:
         signals.system.failed_exn("while shutting down")
Esempio n. 2
0
 def shutdown(self):
     logging.info("Shutting down video conversions manager")
     conversions.conversion_manager.shutdown()
     logging.info("Shutting down Downloader...")
     downloader.shutdown_downloader(self.downloader_shutdown)
     try:
         logging.info("Shutting down worker process.")
         workerprocess.shutdown()
         if app.device_manager is not None:
             logging.info("Shutting down device manager")
             app.device_manager.shutdown()
         if app.sharing_manager is not None:
             logging.info("Shutting down Sharing Manager")
             app.sharing_manager.shutdown()
         if app.sharing_tracker is not None:
             logging.info("Shutting down Sharing Tracker")
             app.sharing_tracker.stop_tracking()
     except StandardError:
         signals.system.failed_exn("while shutting down")
Esempio n. 3
0
 def tearDown(self):
     downloader.shutdown_downloader(eventloop.shutdown)
     self.runEventLoop()
     EventLoopTest.tearDown(self)
Esempio n. 4
0
 def tearDown(self):
     downloader.shutdown_downloader(eventloop.shutdown)
     self.runEventLoop()
     EventLoopTest.tearDown(self)
Esempio n. 5
0
 def shutdown(self):
     logging.info("Shutting down video conversions manager")
     conversions.conversion_manager.shutdown()
     logging.info("Shutting down Downloader...")
     downloader.shutdown_downloader(self.downloader_shutdown)
Esempio n. 6
0
 def tearDown(self):
     downloader.shutdown_downloader(
             lambda: self.stopEventLoop(abnormal=False))
     self.runEventLoop()
     downloader.daemon_starter = None
     EventLoopTest.tearDown(self)
Esempio n. 7
0
 def tearDown(self):
     downloader.shutdown_downloader(
             lambda: self.stopEventLoop(abnormal=False))
     self.runEventLoop()
     downloader.daemon_starter = None
     EventLoopTest.tearDown(self)