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:
parent
44d7fa0ab1
commit
a7a886e670
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,8 +112,8 @@ namespace llarp
|
|||
{
|
||||
if (itr->second->QueueInboundTraffic(ManagedBuffer{payload}, type))
|
||||
return true;
|
||||
++itr;
|
||||
}
|
||||
++itr;
|
||||
}
|
||||
|
||||
if (not m_Router->ConnectionToRouterAllowed(*rid))
|
||||
|
|
Loading…
Reference in a new issue