aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgComponentManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-19 00:34:18 +0000
committersaturneric <[email protected]>2025-04-19 00:34:18 +0000
commitd6aa4d2e5058bccccb167087a10cc26fced8f561 (patch)
treee344b0477a9609b7b6820aa603f620b7d0b15d4b /src/core/function/gpg/GpgComponentManager.cpp
parentfix: gpg context will take response of gpg-agent (diff)
downloadGpgFrontend-d6aa4d2e5058bccccb167087a10cc26fced8f561.tar.gz
GpgFrontend-d6aa4d2e5058bccccb167087a10cc26fced8f561.zip
fix: solve found issues by testing
Diffstat (limited to 'src/core/function/gpg/GpgComponentManager.cpp')
-rw-r--r--src/core/function/gpg/GpgComponentManager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgComponentManager.cpp b/src/core/function/gpg/GpgComponentManager.cpp
index 1b302631..56b95aab 100644
--- a/src/core/function/gpg/GpgComponentManager.cpp
+++ b/src/core/function/gpg/GpgComponentManager.cpp
@@ -68,7 +68,6 @@ auto GpgComponentManager::ReloadGpgAgent() -> bool {
LOG_D() << "invalid response of RELOADAGENT: " << s;
return false;
}
-
return true;
}
@@ -79,8 +78,13 @@ auto GpgComponentManager::GpgKillAgent() -> bool {
LOG_D() << "invalid response of KILLAGENT: " << s;
return false;
}
-
+ Reset();
return true;
}
+void GpgComponentManager::Reset() {
+ scdaemon_version_.clear();
+ gpg_agent_version_.clear();
+ assuan_.ResetAllConnections();
+}
} // namespace GpgFrontend \ No newline at end of file