From f993bd287dee4b0142a43f49d794014e76cc09e5 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 27 Dec 2018 10:18:23 -0500 Subject: [PATCH] dont mark exits as dead when thy arent --- llarp/exit/endpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llarp/exit/endpoint.cpp b/llarp/exit/endpoint.cpp index 453e7afc1..872028fcd 100644 --- a/llarp/exit/endpoint.cpp +++ b/llarp/exit/endpoint.cpp @@ -78,9 +78,9 @@ namespace llarp if(!path) return true; auto lastPing = path->LastRemoteActivityAt(); - if(now > lastPing && now - lastPing > timeout) + if(lastPing && now > lastPing && now - lastPing > timeout) return now > m_LastActive && now - m_LastActive > timeout; - return true; + return lastPing > 0; } bool