From 07871827d05ddb3c3d1f321d6c3f61396418e446 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 8 Oct 2018 16:41:50 -0400 Subject: [PATCH] swap intro --- llarp/service/endpoint.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llarp/service/endpoint.cpp b/llarp/service/endpoint.cpp index d210aee60..9384afb88 100644 --- a/llarp/service/endpoint.cpp +++ b/llarp/service/endpoint.cpp @@ -830,8 +830,6 @@ namespace llarp { if(latency >= m_MinPathLatency) { - // rebuild path next tick - // llarp_logic_queue_job(RouterLogic(), {this, &HandlePathDead}); } return false; } @@ -1163,6 +1161,10 @@ namespace llarp lastShift = now; BuildOneAlignedTo(m_NextIntro.router); } + else if(shiftedIntro) + { + SwapIntros(); + } return shiftedIntro; }