fix crash of clients and propagate lookup failures

pull/733/head
Jeff Becker 5 years ago
parent ce2ff2a93e
commit 972d4f8672
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -728,10 +728,13 @@ namespace llarp
[=](const RouterID &id, const RouterContact *const rc,
const RCRequestResult result) {
(void)id;
std::vector< RouterContact > routers;
if(result == RCRequestResult::Success && rc != nullptr)
if(resultHandler)
{
routers.push_back(*rc);
std::vector< RouterContact > routers;
if(result == RCRequestResult::Success && rc != nullptr)
{
routers.push_back(*rc);
}
resultHandler(routers);
}
});

Loading…
Cancel
Save