diff options
author | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
commit | 889cb8092381b073a0f4a0411a4ede04cd7bdd14 (patch) | |
tree | 87ae80ee7be8b426afe869baff7c99384bbafaaa /src/main.cpp | |
parent | refactor: clean up core's codes (diff) | |
download | GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.tar.gz GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.zip |
refactor: improve the code structure of core
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index e1a220b6..53b80944 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -164,7 +164,8 @@ int main(int argc, char* argv[]) { SPDLOG_DEBUG("restart loop refresh, event loop code: {}, restart count: {}", return_from_event_loop_code, restart_count); - } while (return_from_event_loop_code == kRestartCode && restart_count < 3); + } while (return_from_event_loop_code == GpgFrontend::kRestartCode && + restart_count < 3); // shutdown the logging system for core GpgFrontend::Module::ShutdownGpgFrontendModules(); @@ -179,7 +180,7 @@ int main(int argc, char* argv[]) { SPDLOG_INFO("GpgFrontend about to exit."); // deep restart mode - if (return_from_event_loop_code == kRestartCode || + if (return_from_event_loop_code == GpgFrontend::kRestartCode || return_from_event_loop_code == CRASH_CODE) { // log for debug SPDLOG_DEBUG( |