mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
make sure not all routers get deleted after long break
This commit is contained in:
parent
6c6d013a76
commit
6385f4554e
1 changed files with 3 additions and 0 deletions
|
@ -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 ())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue