From c7e100787b0438bd1c94efed83568f6edfe61398 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 21 Feb 2019 13:00:37 -0500 Subject: [PATCH] swap intros should only swap intros --- llarp/service/endpoint.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index 574295526..ee07f3ca9 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -1142,29 +1142,7 @@ namespace llarp Endpoint::OutboundContext::SwapIntros() { remoteIntro = m_NextIntro; - // prepare next intro - auto now = Now(); - for(const auto& intro : currentIntroSet.I) - { - if(intro.ExpiresSoon(now)) - continue; - if(m_BadIntros.find(intro) == m_BadIntros.end() - && remoteIntro.router == intro.router) - { - m_NextIntro = intro; - return; - } - } - for(const auto& intro : currentIntroSet.I) - { - if(intro.ExpiresSoon(now)) - continue; - if(m_BadIntros.find(intro) == m_BadIntros.end()) - { - m_NextIntro = intro; - return; - } - } + m_DataHandler->PutIntroFor(currentConvoTag, remoteIntro); } bool