mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 13:31:10 +00:00
don't create profile for every single router when save to disk
This commit is contained in:
parent
4d9b5e685d
commit
4e8b8465fa
@ -688,7 +688,7 @@ namespace data
|
|||||||
// since update was long time ago we assume that router is not connected anymore
|
// since update was long time ago we assume that router is not connected anymore
|
||||||
r->ScheduleBufferToDelete ();
|
r->ScheduleBufferToDelete ();
|
||||||
|
|
||||||
if (r->GetProfile ()->IsUnreachable ())
|
if (r->HasProfile () && r->GetProfile ()->IsUnreachable ())
|
||||||
r->SetUnreachable (true);
|
r->SetUnreachable (true);
|
||||||
// make router reachable back if too few routers or floodfills
|
// make router reachable back if too few routers or floodfills
|
||||||
if (r->IsUnreachable () && (total - deletedCount < NETDB_MIN_ROUTERS || isLowRate || isOffline ||
|
if (r->IsUnreachable () && (total - deletedCount < NETDB_MIN_ROUTERS || isLowRate || isOffline ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user