Browse Source

delete tags of termiated session right away

pull/1656/head
orignal 4 years ago
parent
commit
43b587636b
  1. 6
      libi2pd/Garlic.cpp

6
libi2pd/Garlic.cpp

@ -880,7 +880,11 @@ namespace garlic @@ -880,7 +880,11 @@ namespace garlic
{
auto session = it->second.tagset->GetSession ();
if (!session || session->IsTerminated())
it->second.tagset->Expire ();
{
it = m_ECIESx25519Tags.erase (it);
numExpiredTags++;
}
else
++it;
}
}

Loading…
Cancel
Save