Browse Source

don't delete unreachable routers if too few

pull/1556/head
orignal 4 years ago
parent
commit
e2a1cd12c3
  1. 3
      libi2pd/NetDb.cpp

3
libi2pd/NetDb.cpp

@ -560,6 +560,9 @@ namespace data @@ -560,6 +560,9 @@ namespace data
updatedCount++;
continue;
}
// make router reachable back if too few routers
if (it.second->IsUnreachable () && total - deletedCount < NETDB_MIN_ROUTERS)
it.second->SetUnreachable (false);
// find & mark expired routers
if (it.second->UsesIntroducer ())
{

Loading…
Cancel
Save