mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
remove session after HolePunch received
This commit is contained in:
parent
83bd3b6f0b
commit
6ca9a599ff
3 changed files with 7 additions and 15 deletions
|
@ -242,17 +242,6 @@ namespace transport
|
|||
m_Sessions.erase (it);
|
||||
}
|
||||
}
|
||||
|
||||
void SSU2Server::UpdateSessionConnID (uint64_t oldConnID)
|
||||
{
|
||||
auto it = m_Sessions.find (oldConnID);
|
||||
if (it != m_Sessions.end ())
|
||||
{
|
||||
auto session = it->second;
|
||||
m_Sessions.erase (it);
|
||||
m_Sessions.emplace (session->GetConnID (), session);
|
||||
}
|
||||
}
|
||||
|
||||
void SSU2Server::AddSessionByRouterHash (std::shared_ptr<SSU2Session> session)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue