Browse Source

request destination if we are not closest

pull/734/head
orignal 8 years ago
parent
commit
adf887a06b
  1. 2
      NetDb.cpp

2
NetDb.cpp

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

Loading…
Cancel
Save