diff options
author | saturneric <[email protected]> | 2025-04-19 00:34:18 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-19 00:34:18 +0000 |
commit | d6aa4d2e5058bccccb167087a10cc26fced8f561 (patch) | |
tree | e344b0477a9609b7b6820aa603f620b7d0b15d4b /src/core/function/gpg/GpgComponentManager.cpp | |
parent | fix: gpg context will take response of gpg-agent (diff) | |
download | GpgFrontend-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.cpp | 8 |
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 |