pull/189/head
Jeff Becker 6 years ago
parent 3df8dc0f22
commit bb71f1483a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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;

Loading…
Cancel
Save