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->ExpiresSoon())
if(routingPath->remoteLease->ExpiresWithin(DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW, DATAGRAM_SESSION_LEASE_HANDOVER_FUDGE))
lease = GetNextLease();
else
lease = routingPath->remoteLease;