mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
delete expired tunnels
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user