Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9cb5b15 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski Committed by Android (Google) Code Review
Browse files

Revert "Handle runtime sensor events even if there are no real ones."

This reverts commit 3b9574a6.

Reason for revert: potential culprit for b/291461814

Bug: 291461814
Change-Id: Ib92a05135a05978d8d4e6a938df1c6fb5b8169e2
Test: m
parent 3b9574a6
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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;
                }
            } else {
                ALOGE("sensor poll failed (%s)", strerror(-count));
                break;