From 0af05d25179cd3eb52d485ed5d3b777987fa944c Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 9 May 2017 19:06:31 +0200 Subject: [PATCH] patch to avoid re-asking for rejected plugins when the executable is upgraded. --- libretroshare/src/plugins/pluginmanager.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/plugins/pluginmanager.cc b/libretroshare/src/plugins/pluginmanager.cc index fa38394a5..70c43a73b 100644 --- a/libretroshare/src/plugins/pluginmanager.cc +++ b/libretroshare/src/plugins/pluginmanager.cc @@ -503,12 +503,15 @@ bool RsPluginManager::loadList(std::list& list) delete (*it); } + // Rejected hashes are always kept, so that RS wont ask again if the executable hash has changed. + // + _rejected_hashes = rejected_hash_candidates ; + if(reference_executable_hash == _current_executable_hash) { std::cerr << "(II) Executable hash matches. Updating the list of accepted/rejected plugins." << std::endl; _accepted_hashes = accepted_hash_candidates ; - _rejected_hashes = rejected_hash_candidates ; } else std::cerr << "(WW) Executable hashes do not match. Executable hash has changed. Discarding the list of accepted/rejected plugins." << std::endl;