aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 8ab49f08..71f24668 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -183,7 +183,7 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
.value("gnupg/kill_all_gnupg_daemon_at_close", false)
.toBool();
- if (!ctx->unit_test_mode && kill_all_gnupg_daemon_at_close) {
+ if (ctx->unit_test_mode || kill_all_gnupg_daemon_at_close) {
GpgAdvancedOperator::KillAllGpgComponents(nullptr);
} else if (!ctx->unit_test_mode && clear_gpg_password_cache) {
GpgAdvancedOperator::ClearGpgPasswordCache(nullptr);