build paths if we are out of exits on exit session

pull/66/head
Jeff Becker 6 years ago
parent 8d613c182f
commit 6866e70a95
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -20,6 +20,9 @@ namespace llarp
SelectHop(llarp_nodedb* db, const RouterContact& prev, RouterContact& cur,
size_t hop, llarp::path::PathRole roles) override;
bool
ShouldBuildMore(llarp_time_t now) const override;
void
HandlePathBuilt(llarp::path::Path* p) override;

@ -19,6 +19,12 @@ namespace llarp
{
}
bool
BaseSession::ShouldBuildMore(llarp_time_t now) const
{
return AvailablePaths(llarp::path::ePathRoleExit) == 0;
}
bool
BaseSession::SelectHop(llarp_nodedb* db, const RouterContact& prev,
RouterContact& cur, size_t hop,

Loading…
Cancel
Save