1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

fix infinite iteration

This commit is contained in:
Jeff Becker 2021-04-07 09:20:59 -04:00
parent 44d7fa0ab1
commit a7a886e670
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 3 additions and 4 deletions

View file

@ -87,9 +87,8 @@ namespace llarp
bool
Endpoint::ExpiresSoon(llarp_time_t now, llarp_time_t dlt) const
{
auto path = GetCurrentPath();
if (path)
return path->ExpiresSoon(now, dlt);
if(m_CurrentPath)
return m_CurrentPath->ExpiresSoon(now, dlt);
return true;
}

View file

@ -112,8 +112,8 @@ namespace llarp
{
if (itr->second->QueueInboundTraffic(ManagedBuffer{payload}, type))
return true;
++itr;
}
++itr;
}
if (not m_Router->ConnectionToRouterAllowed(*rid))