mirror of
https://github.com/wownero/p2pool-wow.git
synced 2026-11-21 07:44:02 +01:00
P2PServer: clear m_missingBlockRequests when there is nothing missing
This commit is contained in:
@@ -599,6 +599,8 @@ void P2PServer::download_missing_blocks()
|
||||
m_pool->side_chain().get_missing_blocks(missing_blocks);
|
||||
|
||||
if (missing_blocks.empty()) {
|
||||
MutexLock lock(m_missingBlockRequestsLock);
|
||||
m_missingBlockRequests.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user