manage tunnel pools

This commit is contained in:
orignal 2014-03-14 20:51:51 -04:00
parent ab23327da6
commit b47d7aceaa
5 changed files with 19 additions and 23 deletions

View file

@ -15,7 +15,7 @@ namespace tunnel
TunnelPool::~TunnelPool ()
{
for (auto it: m_InboundTunnels)
delete it;
it->SetTunnelPool (nullptr);
}
void TunnelPool::TunnelCreated (InboundTunnel * createdTunnel)
@ -55,7 +55,7 @@ namespace tunnel
i2p::data::netdb.GetRandomRouter (firstHop)
}),
outboundTunnel);
tunnel->SetTunnelPool (this);
tunnel->SetTunnelPool (this);
}
void TunnelPool::ManageTunnels ()