mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-23 03:49:23 +00:00
Fixed Coverity issue
This commit is contained in:
parent
2721b16c46
commit
d4180a5084
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue