try fixing timeout issue

This commit is contained in:
Jeff Becker 2019-03-08 09:59:13 -05:00
parent a5557e0902
commit 792d7d16c0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -230,12 +230,12 @@ namespace llarp
{
if(state == eClose)
return true;
if(now < lastActive)
if(now <= lastActive)
return false;
auto dlt = now - lastActive;
if(dlt >= sessionTimeout)
{
LogInfo("session timeout reached for ", remoteAddr);
LogInfo("session timeout reached for ", remoteAddr, " dlt=", dlt);
return true;
}
return false;