From e6b26c2fd5f18927a51a27dafe084e65af74573a Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 1 Feb 2025 20:08:19 +0100 Subject: fix: issues found on unit test mode --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init.cpp') 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); -- cgit v1.2.3