1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 16:34:13 +00:00

request destination if we are not closest

This commit is contained in:
orignal 2016-12-05 16:36:51 -05:00
parent 42f70cd55d
commit adf887a06b

View File

@ -884,7 +884,7 @@ namespace data
if (!numExcluded) // save if no excluded if (!numExcluded) // save if no excluded
{ {
m_LookupResponses[ident] = std::make_pair(closestFloodfills, i2p::util::GetSecondsSinceEpoch ()); m_LookupResponses[ident] = std::make_pair(closestFloodfills, i2p::util::GetSecondsSinceEpoch ());
if (lookupType != DATABASE_LOOKUP_TYPE_EXPLORATORY_LOOKUP) if (lookupType != DATABASE_LOOKUP_TYPE_EXPLORATORY_LOOKUP && !closestFloodfills.empty ()) // we are not closest
RequestDestination (ident); // try to request for first time only RequestDestination (ident); // try to request for first time only
} }
} }