fixed memory leak

This commit is contained in:
orignal 2016-12-29 22:06:33 -05:00
parent b1b5904852
commit 2e8fa88fcb
4 changed files with 15 additions and 7 deletions

View file

@ -159,6 +159,11 @@ namespace transport
m_Relays[tag] = relay;
}
void SSUServer::RemoveRelay (uint32_t tag)
{
m_Relays.erase (tag);
}
std::shared_ptr<SSUSession> SSUServer::FindRelaySession (uint32_t tag)
{
auto it = m_Relays.find (tag);