mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
don't expire based on reply intro
This commit is contained in:
parent
70ddc84d3a
commit
c2c4f61ded
|
@ -19,9 +19,8 @@ namespace llarp
|
|||
Session::IsExpired(llarp_time_t now, llarp_time_t lifetime) const
|
||||
{
|
||||
if(now <= lastUsed)
|
||||
return intro.IsExpired(now) || replyIntro.IsExpired(now);
|
||||
return now - lastUsed > lifetime || intro.IsExpired(now)
|
||||
|| replyIntro.IsExpired(now);
|
||||
return intro.IsExpired(now);
|
||||
return now - lastUsed > lifetime || intro.IsExpired(now);
|
||||
}
|
||||
|
||||
} // namespace service
|
||||
|
|
Loading…
Reference in a new issue