diff options
author | Marvin Ramin <marvinramin@google.com> | 2023-09-13 11:53:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-09-13 11:53:38 +0000 |
commit | 5636b1879241ad1b896ea04cf3fea2b2f15a7461 (patch) | |
tree | b6b14200e3005f0f70c67595861596a55d246e09 | |
parent | a0c7cca5769008d02e0ce227feb3efd7471813a4 (diff) | |
parent | e9cb5b159c6bf1c76576845d4bacd752ce79f8e1 (diff) | |
download | native-5636b1879241ad1b896ea04cf3fea2b2f15a7461.tar.gz |
Merge "Revert "Handle runtime sensor events even if there are no real ones."" into udc-dev
-rw-r--r-- | services/sensorservice/SensorService.cpp | 7 |
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; |