From 10ffd5c1abd1168073e9c30b9a3205d4a3628ac4 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 3 Sep 2016 16:06:14 -0400 Subject: [PATCH] don't check for expired lease --- Datagram.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Datagram.cpp b/Datagram.cpp index 5fd12b28..adecb41f 100644 --- a/Datagram.cpp +++ b/Datagram.cpp @@ -399,8 +399,6 @@ namespace datagram exclude.push_back(ident); // find get all leases that are not in our ban list and are not going to expire within our lease set handover window + fudge auto leases = m_RemoteLeaseSet->GetNonExpiredLeasesExcluding( [&exclude, now] (const i2p::data::Lease & l) -> bool { - if(l.ExpiresWithin (DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW, DATAGRAM_SESSION_LEASE_HANDOVER_FUDGE)) - return true; if(exclude.size()) { auto end = std::end(exclude);