diff options
author | saturneric <[email protected]> | 2025-04-18 15:54:54 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-18 15:54:54 +0000 |
commit | 8f14fdc7325cb9635e3d92873baaa58f430fca01 (patch) | |
tree | 323f462c283ac2151a23cfffd08d52a678c06541 /src/init.cpp | |
parent | fix: add missing libGLESv2.dll on windows platform (diff) | |
download | GpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.tar.gz GpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.zip |
feat: add more info check
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 |