1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
This commit is contained in:
Jeff Becker 2018-12-27 10:32:41 -05:00
parent 3df8dc0f22
commit bb71f1483a
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -78,7 +78,7 @@ namespace llarp
if(!path)
return true;
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;
else if(lastPing)
return now > lastPing && now - lastPing > timeout;