fix infinite iteration

pull/1576/head
Jeff Becker 3 years ago
parent 44d7fa0ab1
commit a7a886e670
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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…
Cancel
Save