don't stop lookup if number of attempts < 3

This commit is contained in:
orignal 2024-04-30 12:52:00 -04:00
parent c515f49903
commit 5adbc2c3fe

View File

@ -991,7 +991,7 @@ namespace data
auto dest = m_Requests.FindRequest (ident);
if (dest)
{
if (num > 0)
if (num > 0 || dest->GetNumExcludedPeers () < 3) // before 3-rd attempt might be just bad luck
// try to send next requests
m_Requests.SendNextRequest (dest);
else