diff options
author | saturneric <[email protected]> | 2025-04-18 17:56:51 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-18 17:56:51 +0000 |
commit | a7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9 (patch) | |
tree | 54838273836a155033d33b246ec4a4200291825b /src/init.cpp | |
parent | fix: issues found by testing (diff) | |
parent | fix: spelling mistake on project config by nightly build (diff) | |
download | GpgFrontend-a7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9.tar.gz GpgFrontend-a7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9.zip |
Merge branch 'develop'
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 71f24668..3d1f344b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -184,9 +184,15 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) { .toBool(); if (ctx->unit_test_mode || kill_all_gnupg_daemon_at_close) { - GpgAdvancedOperator::KillAllGpgComponents(nullptr); + const auto size = GpgContext::GetAllChannelId().size(); + for (auto i = 0; i < size; i++) { + assert(GpgAdvancedOperator::GetInstance().KillAllGpgComponents()); + } } else if (!ctx->unit_test_mode && clear_gpg_password_cache) { - GpgAdvancedOperator::ClearGpgPasswordCache(nullptr); + const auto size = GpgContext::GetAllChannelId().size(); + for (auto i = 0; i < size; i++) { + assert(GpgAdvancedOperator::GetInstance().ClearGpgPasswordCache()); + } } // first should shutdown the module system |