P2PServer: clear m_missingBlockRequests when there is nothing missing

pull/5/head
SChernykh 2021-08-27 21:09:35 +02:00
parent bbe69077c1
commit 14bb308794
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}