Merge branch 'master' of ssh://github.com/majestrate/loki-network

This commit is contained in:
Jeff Becker 2019-08-07 17:44:15 -04:00
commit b9cb59f021
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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