show streams per local destination

This commit is contained in:
orignal 2014-10-11 18:21:52 -04:00
parent 2ab597be20
commit 6d6c81bf8b
4 changed files with 22 additions and 8 deletions

View file

@ -37,6 +37,7 @@ namespace tunnel
void TunnelPool::TunnelCreated (InboundTunnel * createdTunnel)
{
if (m_IsDeleted) return;
{
std::unique_lock<std::mutex> l(m_InboundTunnelsMutex);
m_InboundTunnels.insert (createdTunnel);
@ -60,6 +61,7 @@ namespace tunnel
void TunnelPool::TunnelCreated (OutboundTunnel * createdTunnel)
{
if (m_IsDeleted) return;
std::unique_lock<std::mutex> l(m_OutboundTunnelsMutex);
m_OutboundTunnels.insert (createdTunnel);
}