Checking HIDL callback return value

Change-Id: I937f155b80d54396f86fb44d731bc592ae49411e
CRs-Fixed: 2120892
This commit is contained in:
Saurabh Srivastava 2017-10-16 19:55:47 +05:30
parent 9f2a492534
commit 57640c9f33

View file

@ -72,7 +72,10 @@ void AGnss::agnssStatusIpV4Cb(AGnssExtStatusIpV4 status){
} }
st.ipV4Addr = status.ipV4Addr; st.ipV4Addr = status.ipV4Addr;
sAGnssCbIface->agnssStatusIpV4Cb(st); auto r = sAGnssCbIface->agnssStatusIpV4Cb(st);
if (!r.isOk()) {
LOC_LOGE("Error invoking AGNSS status cb %s", r.description().c_str());
}
} }
Return<void> AGnss::setCallback(const sp<IAGnssCallback>& callback) { Return<void> AGnss::setCallback(const sp<IAGnssCallback>& callback) {