1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-08-26 04:31:55 +00:00

don't delete unreachable routers if too few

This commit is contained in:
orignal 2020-10-07 21:13:26 -04:00
parent 7246624983
commit e2a1cd12c3

View File

@ -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 ())
{