short circuit

pull/1105/head
Jeff Becker 4 years ago
parent 6a495dd090
commit 9aeee37347
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -362,6 +362,8 @@ namespace llarp
return false;
const bool canBuild = NumInStatus(path::ePathBuilding) == 0
and path::Builder::ShouldBuildMore(now);
if(not canBuild)
return false;
llarp_time_t t = 0;
ForEachPath([&t](path::Path_ptr path) {
if(path->IsReady())

Loading…
Cancel
Save