when we stop a path builder we want to expire all of their paths so they go away

pull/1642/head
Jeff Becker 3 years ago
parent 7bd38a44c1
commit 3c2334112c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -264,6 +264,14 @@ namespace llarp
Builder::Stop()
{
_run = false;
// tell all our paths that they have expired
const auto now = Now();
for (auto& item : m_Paths)
{
item.second->EnterState(ePathExpired, now);
}
// remove expired paths
ExpirePaths(now, m_router);
return true;
}

Loading…
Cancel
Save