mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
handle termination block
This commit is contained in:
parent
d7d70b707f
commit
c4d9c03930
4 changed files with 30 additions and 13 deletions
|
@ -1013,5 +1013,14 @@ namespace garlic
|
|||
m_ECIESx25519Sessions.emplace (staticKeyTag, session);
|
||||
}
|
||||
|
||||
void GarlicDestination::RemoveECIESx25519Session (const uint8_t * staticKey)
|
||||
{
|
||||
auto it = m_ECIESx25519Sessions.find (staticKey);
|
||||
if (it != m_ECIESx25519Sessions.end ())
|
||||
{
|
||||
it->second->SetOwner (nullptr);
|
||||
m_ECIESx25519Sessions.erase (it);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue