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 f0481152..ee19553a 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -187,7 +187,7 @@ void ShutdownGlobalBasicEnv(const GFCxtWPtr &p_ctx) {
for (const auto &channel : GpgContext::GetAllChannelId()) {
assert(GpgAdvancedOperator::GetInstance(channel).KillAllGpgComponents());
}
- } else if (!ctx->unit_test_mode && clear_gpg_password_cache) {
+ } else if (clear_gpg_password_cache) {
for (const auto &channel : GpgContext::GetAllChannelId()) {
assert(GpgAdvancedOperator::GetInstance(channel).ClearGpgPasswordCache());
}