mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Check and catch the callback transaction error" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1fd86d9b89
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user