remove session after HolePunch received

This commit is contained in:
orignal 2022-06-30 08:37:50 -04:00
parent 83bd3b6f0b
commit 6ca9a599ff
3 changed files with 7 additions and 15 deletions

View file

@ -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)
{