mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-19 13:08:46 -06:00
P2PServer: clear m_missingBlockRequests when there is nothing missing
This commit is contained in:
parent
bbe69077c1
commit
14bb308794
@ -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 New Issue
Block a user