mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
don't check for expired lease
This commit is contained in:
parent
7e99be12b0
commit
10ffd5c1ab
1 changed files with 0 additions and 2 deletions
|
@ -399,8 +399,6 @@ namespace datagram
|
||||||
exclude.push_back(ident);
|
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
|
// 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 {
|
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())
|
if(exclude.size())
|
||||||
{
|
{
|
||||||
auto end = std::end(exclude);
|
auto end = std::end(exclude);
|
||||||
|
|
Loading…
Add table
Reference in a new issue