summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-11-27 18:20:51 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-27 18:20:51 -0800
commit2a457dff0de2d3c4bbf24164882c4c0ac41d5010 (patch)
treeb542f88c85e9a597924cfd86b5aaa639db92cb19
parent9e1b5634dd6f867db3d8f15a1833db05a2ce8d7d (diff)
parentdc7b3aadf2009129f1f71baa016d9c21b35e6543 (diff)
downloadplatform_hardware_interfaces-2a457dff0de2d3c4bbf24164882c4c0ac41d5010.tar.gz
platform_hardware_interfaces-2a457dff0de2d3c4bbf24164882c4c0ac41d5010.tar.bz2
platform_hardware_interfaces-2a457dff0de2d3c4bbf24164882c4c0ac41d5010.zip
Merge "vibrator impl: log failed callback" am: 362375c48e
am: dc7b3aadf2 Change-Id: I8efdabefeb4241acf486ea3645f539ac3fcbd7c3
-rw-r--r--vibrator/aidl/default/Vibrator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/vibrator/aidl/default/Vibrator.cpp b/vibrator/aidl/default/Vibrator.cpp
index a77c49a0a2..befdeab08a 100644
--- a/vibrator/aidl/default/Vibrator.cpp
+++ b/vibrator/aidl/default/Vibrator.cpp
@@ -48,7 +48,9 @@ ndk::ScopedAStatus Vibrator::on(int32_t timeoutMs,
LOG(INFO) << "Starting on on another thread";
usleep(timeoutMs * 1000);
LOG(INFO) << "Notifying on complete";
- callback->onComplete();
+ if (!callback->onComplete().isOk()) {
+ LOG(ERROR) << "Failed to call onComplete";
+ }
}).detach();
}
return ndk::ScopedAStatus::ok();