From d4180a5084e48be16e4bea4d41f87d54d0548ee8 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 24 Nov 2022 08:43:13 +0100 Subject: [PATCH] Fixed Coverity issue --- src/side_chain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/side_chain.cpp b/src/side_chain.cpp index 88c8eb5..5680361 100644 --- a/src/side_chain.cpp +++ b/src/side_chain.cpp @@ -2142,6 +2142,9 @@ void SideChain::finish_precalc() uv_mutex_destroy(&m_precalcJobsMutex); uv_cond_destroy(&m_precalcJobsCond); + // Also clear cache because it has data from all old blocks now + clear_crypto_cache(); + LOGINFO(4, "pre-calculation workers stopped"); } catch (const std::exception& e) @@ -2149,9 +2152,6 @@ void SideChain::finish_precalc() LOGERR(1, "exception in finish_precalc(): " << e.what()); } - // Also clear cache because it has data from all old blocks now - clear_crypto_cache(); - #ifdef DEV_TEST_SYNC if (m_pool) { LOGINFO(0, log::LightGreen() << "[DEV] Synchronization finished successfully, stopping P2Pool now");