Merge pull request #733 from majestrate/fix-crash-2019-07-26

fix crash of clients and propagate lookup failures
pull/738/head
Jeff 5 years ago committed by GitHub
commit 4501156aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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