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

Commit 79c8693b authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10322758 from 92745f7a to udc-release

Change-Id: I15162ace6165bf6c5d79e40337c9291106337e69
parents 1f55e13b 92745f7a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1055,7 +1055,12 @@ 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;