mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't compare OBEP hash twice to check if it's a fresh tunnel
This commit is contained in:
parent
04bccedd9b
commit
9a30068ae5
3 changed files with 9 additions and 7 deletions
|
@ -927,9 +927,7 @@ namespace stream
|
|||
else if (!m_CurrentOutboundTunnel->IsEstablished ())
|
||||
{
|
||||
auto oldOutboundTunnel = m_CurrentOutboundTunnel;
|
||||
m_CurrentOutboundTunnel = m_LocalDestination.GetOwner ()->GetTunnelPool ()->GetNewOutboundTunnel (m_CurrentOutboundTunnel);
|
||||
if (m_CurrentOutboundTunnel && oldOutboundTunnel->GetEndpointIdentHash() != m_CurrentOutboundTunnel->GetEndpointIdentHash())
|
||||
freshTunnel = true;
|
||||
std::tie(m_CurrentOutboundTunnel, freshTunnel) = m_LocalDestination.GetOwner ()->GetTunnelPool ()->GetNewOutboundTunnel (m_CurrentOutboundTunnel);
|
||||
}
|
||||
if (!m_CurrentOutboundTunnel)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue