mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
Merge pull request #757 from majestrate/master
don't expire based on reply intro
This commit is contained in:
commit
da4f1ddb0a
@ -19,9 +19,8 @@ namespace llarp
|
|||||||
Session::IsExpired(llarp_time_t now, llarp_time_t lifetime) const
|
Session::IsExpired(llarp_time_t now, llarp_time_t lifetime) const
|
||||||
{
|
{
|
||||||
if(now <= lastUsed)
|
if(now <= lastUsed)
|
||||||
return intro.IsExpired(now) || replyIntro.IsExpired(now);
|
return intro.IsExpired(now);
|
||||||
return now - lastUsed > lifetime || intro.IsExpired(now)
|
return now - lastUsed > lifetime || intro.IsExpired(now);
|
||||||
|| replyIntro.IsExpired(now);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace service
|
} // namespace service
|
||||||
|
Loading…
Reference in New Issue
Block a user