mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Do not crash fatally when recovering from system server restart."
This commit is contained in:
committed by
Android (Google) Code Review
commit
dfeb5973ac
@@ -165,8 +165,9 @@ Return<void> Sensors::poll(int32_t maxCount, poll_cb _hidl_cb) {
|
||||
if(!lock.owns_lock()){
|
||||
// cannot get the lock, hidl service will go into deadlock if it is not restarted.
|
||||
// This is guaranteed to not trigger in passthrough mode.
|
||||
LOG(FATAL) <<
|
||||
LOG(ERROR) <<
|
||||
"ISensors::poll() re-entry. I do not know what to do except killing myself.";
|
||||
::exit(-1);
|
||||
}
|
||||
|
||||
if (maxCount <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user