detach tunnles from poll

This commit is contained in:
orignal 2014-10-11 09:47:24 -04:00
parent f34680134a
commit 2ab597be20
3 changed files with 14 additions and 4 deletions

View file

@ -17,6 +17,11 @@ namespace tunnel
}
TunnelPool::~TunnelPool ()
{
DetachTunnels ();
}
void TunnelPool::DetachTunnels ()
{
{
std::unique_lock<std::mutex> l(m_InboundTunnelsMutex);
@ -28,8 +33,8 @@ namespace tunnel
for (auto it: m_OutboundTunnels)
it->SetTunnelPool (nullptr);
}
}
}
void TunnelPool::TunnelCreated (InboundTunnel * createdTunnel)
{
{