|
|
@ -78,7 +78,7 @@ namespace llarp
|
|
|
|
if(!path)
|
|
|
|
if(!path)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
auto lastPing = path->LastRemoteActivityAt();
|
|
|
|
auto lastPing = path->LastRemoteActivityAt();
|
|
|
|
if(lastPing == 0 || now > lastPing && now - lastPing > timeout)
|
|
|
|
if(lastPing == 0 || ( now > lastPing && now - lastPing > timeout))
|
|
|
|
return now > m_LastActive && now - m_LastActive > timeout;
|
|
|
|
return now > m_LastActive && now - m_LastActive > timeout;
|
|
|
|
else if(lastPing)
|
|
|
|
else if(lastPing)
|
|
|
|
return now > lastPing && now - lastPing > timeout;
|
|
|
|
return now > lastPing && now - lastPing > timeout;
|
|
|
|