mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-03-12 09:29:51 +00:00
P2PServer: clear m_missingBlockRequests when there is nothing missing
This commit is contained in:
parent
bbe69077c1
commit
14bb308794
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,8 @@ void P2PServer::download_missing_blocks()
|
||||||
m_pool->side_chain().get_missing_blocks(missing_blocks);
|
m_pool->side_chain().get_missing_blocks(missing_blocks);
|
||||||
|
|
||||||
if (missing_blocks.empty()) {
|
if (missing_blocks.empty()) {
|
||||||
|
MutexLock lock(m_missingBlockRequestsLock);
|
||||||
|
m_missingBlockRequests.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue