only check for ready paths when counting in future

pull/630/head
Jeff Becker 5 years ago
parent fa25bfc797
commit c77e0aff8a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -54,7 +54,7 @@ namespace llarp
Lock_t l(&m_PathsMutex);
for(const auto& item : m_Paths)
{
if(!item.second->Expired(futureTime))
if(item.second->IsReady() && !item.second->Expired(futureTime))
++num;
}
return num;

Loading…
Cancel
Save