Browse Source

remove expired LS

pull/557/head
Jeff Becker 9 years ago
parent
commit
331065eec6
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 8
      NetDb.cpp

8
NetDb.cpp

@ -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…
Cancel
Save