aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 17:56:51 +0000
committersaturneric <[email protected]>2025-04-18 17:56:51 +0000
commita7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9 (patch)
tree54838273836a155033d33b246ec4a4200291825b /src/init.cpp
parentfix: issues found by testing (diff)
parentfix: spelling mistake on project config by nightly build (diff)
downloadGpgFrontend-a7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9.tar.gz
GpgFrontend-a7ea8e6de4bb205d2a3783d5cb9bde8bee0086b9.zip
Merge branch 'develop'
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp10
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