mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
remove expired LS
This commit is contained in:
parent
6b16a48568
commit
331065eec6
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue