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

only use ready paths

This commit is contained in:
Jeff Becker 2019-05-07 09:49:49 -04:00
parent e08c8bf919
commit 744ebac579
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -88,7 +88,7 @@ namespace llarp
EndpointPathPtrSet found;
m_OurPaths.ForEach([&](const PathSet_ptr& set) {
set->ForEachPath([&](const Path_ptr& p) {
if(p->Endpoint() == r)
if(p->Endpoint() == r && p->IsReady())
found.insert(p);
});
});