Browse Source

don't stop lookup if number of attempts < 3

pull/1941/merge
orignal 8 months ago
parent
commit
5adbc2c3fe
  1. 2
      libi2pd/NetDb.cpp

2
libi2pd/NetDb.cpp

@ -991,7 +991,7 @@ namespace data
auto dest = m_Requests.FindRequest (ident); auto dest = m_Requests.FindRequest (ident);
if (dest) 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 // try to send next requests
m_Requests.SendNextRequest (dest); m_Requests.SendNextRequest (dest);
else else

Loading…
Cancel
Save