Fixed coverity issue

This commit is contained in:
SChernykh 2022-08-05 15:27:39 +02:00
parent 3dde71f1ff
commit 948436e57e

View file

@ -2011,6 +2011,8 @@ void SideChain::finish_precalc()
return;
}
try
{
{
MutexLock lock(m_precalcJobsMutex);
for (PrecalcJob* job : m_precalcJobs) {
@ -2035,5 +2037,10 @@ void SideChain::finish_precalc()
LOGINFO(4, "pre-calculation workers stopped");
}
catch (const std::exception& e)
{
LOGERR(1, "exception in finish_precalc(): " << e.what());
}
}
} // namespace p2pool