mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
delete expired tunnels
This commit is contained in:
parent
30b25e9eeb
commit
ab5576c744
4 changed files with 26 additions and 35 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue