aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.cpp')
-rw-r--r--src/app.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 0aa6e5d1..18c38ffb 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -77,14 +77,6 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
GF_MAIN_LOG_DEBUG("try to destroy modules system and core");
- // first should shutdown the module system
- GpgFrontend::Module::ShutdownGpgFrontendModules();
-
- // then shutdown the core
- GpgFrontend::DestroyGpgFrontendCore();
-
- GF_MAIN_LOG_DEBUG("core and modules system destroyed");
-
restart_count++;
GF_MAIN_LOG_DEBUG(
@@ -93,6 +85,13 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
} while (return_from_event_loop_code == GpgFrontend::kRestartCode &&
restart_count < 3);
+ // first should shutdown the module system
+ GpgFrontend::Module::ShutdownGpgFrontendModules();
+
+ // then shutdown the core
+ GpgFrontend::DestroyGpgFrontendCore();
+ GF_MAIN_LOG_DEBUG("core and modules system destroyed");
+
// log for debug
GF_MAIN_LOG_INFO("GpgFrontend is about to exit.");