From 6385f4554e5b49edba4d01ae0aebd392f40a9867 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 22 Jan 2014 20:48:08 -0500 Subject: [PATCH] make sure not all routers get deleted after long break --- NetDb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NetDb.cpp b/NetDb.cpp index 084b10ab..a00e900d 100644 --- a/NetDb.cpp +++ b/NetDb.cpp @@ -222,7 +222,10 @@ namespace data { // RouterInfo expires in 72 hours if more than 300 if (total > 300 && ts > it.second->GetTimestamp () + 3*24*3600*1000LL) // 3 days + { + total--; it.second->SetUnreachable (true); + } if (it.second->IsUnreachable ()) {