only use ready paths

pull/598/head
Jeff Becker 5 years ago
parent e08c8bf919
commit 744ebac579
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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);
});
});

Loading…
Cancel
Save