remove expired LS

This commit is contained in:
Jeff Becker
2016-06-30 17:01:00 -04:00
parent 6b16a48568
commit 331065eec6

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)