From a1476b24e7c6ba1b7dc4375a267ece9130806dd3 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 23 Dec 2018 09:04:26 -0500 Subject: [PATCH] don't use dead sessions --- llarp/handlers/exit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llarp/handlers/exit.cpp b/llarp/handlers/exit.cpp index 0adb514eb..2003d2237 100644 --- a/llarp/handlers/exit.cpp +++ b/llarp/handlers/exit.cpp @@ -567,7 +567,8 @@ namespace llarp { // if the iterators's exit is newer use it for the chosen exit for // key - m_ChosenExits[itr->first] = itr->second.get(); + if(!itr->second->LooksDead(now)) + m_ChosenExits[itr->first] = itr->second.get(); } } else if(!itr->second->LooksDead(