mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
close connection to first hop of declined tunnel
This commit is contained in:
parent
05d869254d
commit
8801a144a0
4 changed files with 25 additions and 3 deletions
|
@ -361,10 +361,12 @@ namespace tunnel
|
|||
void Tunnels::ManageTunnels ()
|
||||
{
|
||||
// check pending tunnel. if something is still there, wipe it out
|
||||
// because it wouldn't be reponded anyway
|
||||
// because it wouldn't be responded anyway
|
||||
for (auto& it : m_PendingTunnels)
|
||||
{
|
||||
LogPrint ("Pending tunnel build request ", it.first, " has not been responded. Deleted");
|
||||
if (it.second->GetTunnelConfig ()->GetFirstHop ()->isGateway) // outbound
|
||||
i2p::transports.CloseSession (it.second->GetTunnelConfig ()->GetFirstHop ()->router);
|
||||
delete it.second;
|
||||
}
|
||||
m_PendingTunnels.clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue