def __exit(self, exit_code=0): """ Exits the application with the provided code. It also waits until all app threads end. """ model.api.log("Closing Faraday...") model.api.devlog("stopping model controller thread...") model.api.stopAPIServer() restapi.stopServer() self._model_controller.stop() self._model_controller.join() self.timer.stop() model.api.devlog("Waiting for controller threads to end...") return exit_code
def __exit(self, exit_code=0): """ Exits the application with the provided code. It also waits until all app threads end. """ self._workspace_manager.stopAutoLoader() self._workspace_manager.stopReportManager() # self._main_window.hide() model.api.devlog("Closing Faraday...") self._workspace_manager.saveWorkspaces() model.api.devlog("stopping model controller thread...") self._model_controller.stop() model.api.devlog("stopping model controller thread...") self.gui_app.quit() model.api.devlog("Waiting for controller threads to end...") self._model_controller.join() model.api.stopAPIServer() restapi.stopServer() return exit_code
def __exit(self, exit_code=0): """ Exits the application with the provided code. It also waits until all app threads end. """ self._workspace_manager.stopAutoLoader() self._workspace_manager.stopReportManager() #self._main_window.hide() model.api.devlog("Closing Faraday...") self._workspace_manager.saveWorkspaces() model.api.devlog("stopping model controller thread...") self._model_controller.stop() model.api.devlog("stopping model controller thread...") self.gui_app.quit() model.api.devlog("Waiting for controller threads to end...") self._model_controller.join() model.api.stopAPIServer() restapi.stopServer() return exit_code