This commit is contained in:
Jeff Becker 2016-09-03 15:54:22 -04:00
parent 783c0c7c7b
commit 7ea8509dfe
No known key found for this signature in database
GPG key ID: AB950234D6EA286B

View file

@ -343,7 +343,7 @@ namespace datagram
{ {
if(routingPath->remoteLease) if(routingPath->remoteLease)
{ {
if(routingPath->remoteLease->ExpiresSoon()) if(routingPath->remoteLease->ExpiresWithin(DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW, DATAGRAM_SESSION_LEASE_HANDOVER_FUDGE))
lease = GetNextLease(); lease = GetNextLease();
else else
lease = routingPath->remoteLease; lease = routingPath->remoteLease;