request destination if we are not closest

pull/734/head
orignal 8 years ago
parent 42f70cd55d
commit adf887a06b

@ -884,7 +884,7 @@ namespace data
if (!numExcluded) // save if no excluded
{
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
}
}

Loading…
Cancel
Save