make sure we are done with session before remving it

This commit is contained in:
orignal 2024-09-24 20:57:04 -04:00
parent 0912de5b77
commit 262a803d10
3 changed files with 9 additions and 3 deletions

View file

@ -476,6 +476,11 @@ namespace transport
}
}
void SSU2Server::RequestRemoveSession (uint64_t connID)
{
GetService ().post ([connID, this]() { RemoveSession (connID); });
}
void SSU2Server::AddSessionByRouterHash (std::shared_ptr<SSU2Session> session)
{
if (session)