Browse Source

update LeaseSet if inbond tunnel failed

pull/2072/head
orignal 7 months ago
parent
commit
940628bf36
  1. 4
      libi2pd/TunnelPool.cpp

4
libi2pd/TunnelPool.cpp

@ -367,7 +367,11 @@ namespace tunnel @@ -367,7 +367,11 @@ namespace tunnel
{
std::unique_lock<std::mutex> l(m_InboundTunnelsMutex);
if (m_InboundTunnels.size () > 1 || m_NumInboundTunnels <= 1) // don't fail last tunnel
{
m_InboundTunnels.erase (it.second.second);
if (m_LocalDestination)
m_LocalDestination->SetLeaseSetUpdated ();
}
else
it.second.second->SetState (eTunnelStateTestFailed);
}

Loading…
Cancel
Save