mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fixed crash
This commit is contained in:
parent
89f58d0a7a
commit
0c3949ef7a
@ -408,8 +408,8 @@ namespace tunnel
|
||||
auto pool = (*it)->GetTunnelPool ();
|
||||
if (pool)
|
||||
pool->TunnelExpired (tunnel);
|
||||
delete *it;
|
||||
it = m_OutboundTunnels.erase (it);
|
||||
delete tunnel;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -449,8 +449,8 @@ namespace tunnel
|
||||
auto pool = tunnel->GetTunnelPool ();
|
||||
if (pool)
|
||||
pool->TunnelExpired (tunnel);
|
||||
delete tunnel;
|
||||
it = m_InboundTunnels.erase (it);
|
||||
delete tunnel;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user