mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-04 21:24:15 +00:00
remove expired LS
This commit is contained in:
parent
6b16a48568
commit
331065eec6
@ -688,8 +688,14 @@ namespace data
|
|||||||
LogPrint (eLogDebug, "NetDb: requested LeaseSet ", key, " found");
|
LogPrint (eLogDebug, "NetDb: requested LeaseSet ", key, " found");
|
||||||
replyMsg = CreateDatabaseStoreMsg (leaseSet);
|
replyMsg = CreateDatabaseStoreMsg (leaseSet);
|
||||||
}
|
}
|
||||||
else
|
else if (!leaseSet->IsEmpty())
|
||||||
|
{
|
||||||
LogPrint (eLogDebug, "NetDb: requested Expired LeaseSet ", key);
|
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)
|
if (!replyMsg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user