mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
try fixing timeout issue
This commit is contained in:
parent
a5557e0902
commit
792d7d16c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user