mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
make sure not all routers get deleted after long break
This commit is contained in:
parent
6c6d013a76
commit
6385f4554e
@ -222,7 +222,10 @@ namespace data
|
|||||||
{
|
{
|
||||||
// RouterInfo expires in 72 hours if more than 300
|
// RouterInfo expires in 72 hours if more than 300
|
||||||
if (total > 300 && ts > it.second->GetTimestamp () + 3*24*3600*1000LL) // 3 days
|
if (total > 300 && ts > it.second->GetTimestamp () + 3*24*3600*1000LL) // 3 days
|
||||||
|
{
|
||||||
|
total--;
|
||||||
it.second->SetUnreachable (true);
|
it.second->SetUnreachable (true);
|
||||||
|
}
|
||||||
|
|
||||||
if (it.second->IsUnreachable ())
|
if (it.second->IsUnreachable ())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user