mirror of https://github.com/oxen-io/lokinet
fix crash of clients and propagate lookup failures
This commit is contained in:
parent
ce2ff2a93e
commit
972d4f8672
|
@ -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…
Reference in New Issue