1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-26 12:14:15 +00:00

remove expired LS

This commit is contained in:
Jeff Becker 2016-06-30 17:01:00 -04:00
parent 6b16a48568
commit 331065eec6
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -688,8 +688,14 @@ namespace data
LogPrint (eLogDebug, "NetDb: requested LeaseSet ", key, " found");
replyMsg = CreateDatabaseStoreMsg (leaseSet);
}
else
else if (!leaseSet->IsEmpty())
{
LogPrint (eLogDebug, "NetDb: requested Expired LeaseSet ", key);
// remove LS as it is expired
m_LeaseSets.erase(ident);
}
else
LogPrint(eLogWarning, "NetDb: LeaseSet is empty? ", ident.ToBase32());
}
if (!replyMsg)