mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
clean up expired LeaseSets
This commit is contained in:
parent
192a08b5bf
commit
2ed69ef602
3 changed files with 17 additions and 1 deletions
|
@ -857,7 +857,7 @@ namespace data
|
|||
{
|
||||
for (auto it = m_LeaseSets.begin (); it != m_LeaseSets.end ();)
|
||||
{
|
||||
if (it->second->HasNonExpiredLeases ()) // all leases expired
|
||||
if (!it->second->HasNonExpiredLeases ()) // all leases expired
|
||||
{
|
||||
LogPrint ("LeaseSet ", it->second->GetIdentHash ().ToBase64 (), " expired");
|
||||
it = m_LeaseSets.erase (it);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue