delete expired tunnels

This commit is contained in:
orignal 2014-07-09 21:43:33 -04:00
parent 30b25e9eeb
commit ab5576c744
4 changed files with 26 additions and 35 deletions

View file

@ -398,8 +398,8 @@ namespace tunnel
auto pool = (*it)->GetTunnelPool ();
if (pool)
pool->TunnelExpired (*it);
delete *it;
it = m_OutboundTunnels.erase (it);
// TODO: delete tunnel, but make nobody uses it
}
else
it++;
@ -431,8 +431,8 @@ namespace tunnel
auto pool = it->second->GetTunnelPool ();
if (pool)
pool->TunnelExpired (it->second);
delete it->second;
it = m_InboundTunnels.erase (it);
// TODO: delete tunnel, but make nobody uses it
}
else
it++;