Merge "Check and catch the callback transaction error" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-28 02:10:35 +00:00
committed by Android (Google) Code Review

View File

@@ -316,7 +316,9 @@ WifiStatus WifiRttController::rangeRequestInternal_1_6(
return;
}
for (const auto& callback : shared_ptr_this->getEventCallbacks()) {
callback->onResults_1_6(id, hidl_results);
if (!callback->onResults_1_6(id, hidl_results).isOk()) {
LOG(ERROR) << "Failed to invoke the callback";
}
}
};
legacy_hal::wifi_error legacy_status = legacy_hal_.lock()->startRttRangeRequest(