summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2023-07-28 07:13:46 +0000
committer Vladimir Komsiyski <vladokom@google.com> 2023-07-28 07:14:10 +0000
commit574ac3e232b96a5639f29b1161d8643ae2c5c0d1 (patch)
tree25263ba70e8c97e7724b0b1040f3ef868df8396b
parent5df985132ea483627687c65e5f1c6b526d9e9720 (diff)
Revert "Handle runtime sensor events even if there are no real ones."
This reverts commit 3b9574a68afb242d573f062ce8e0a99a452d5842. Reason for revert: potential culprit for b/291461814 Bug: 291461814 Change-Id: Ib92a05135a05978d8d4e6a938df1c6fb5b8169e2 Test: m
-rw-r--r--services/sensorservice/SensorService.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp
index 90d75414d6..398d60242b 100644
--- a/services/sensorservice/SensorService.cpp
+++ b/services/sensorservice/SensorService.cpp
@@ -1055,12 +1055,7 @@ bool SensorService::threadLoop() {
if (count < 0) {
if(count == DEAD_OBJECT && device.isReconnecting()) {
device.reconnect();
- // There are no "real" events at this point, but do not skip the rest of the loop
- // if there are pending runtime events.
- Mutex::Autolock _l(&mLock);
- if (mRuntimeSensorEventQueue.empty()) {
- continue;
- }
+ continue;
} else {
ALOGE("sensor poll failed (%s)", strerror(-count));
break;