Update stratum_server.cpp

This commit is contained in:
SChernykh 2021-08-24 11:51:11 +02:00
parent aba3bc50b8
commit 9808685981

View file

@ -427,10 +427,11 @@ void StratumServer::on_after_share_found(uv_work_t* req, int /*status*/)
ON_SCOPE_LEAVE(
[share]()
{
{
MutexLock lock(share->m_server->m_submittedSharesPoolLock);
share->m_server->m_submittedSharesPool.push_back(share);
}
bkg_jobs_tracker.stop("StratumServer::on_share_found");
MutexLock lock(share->m_server->m_submittedSharesPoolLock);
share->m_server->m_submittedSharesPool.push_back(share);
});
StratumClient* client = share->m_client;