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

Commit 9b5a821d authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Do not use moved-from object

We are currently reading a field from a moved-from object.
Remove this read.

Bug: none
Test: none
Change-Id: I0d33636f653b7f7ae0b98e4645ee8779bf9da2ea
parent b51f8a34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ void MotionClassifier::enqueueEvent(ClassifierEvent&& event) {
    bool eventAdded = mEvents.push(std::move(event));
    if (!eventAdded) {
        // If the queue is full, suspect the HAL is slow in processing the events.
        ALOGE("Dropped event with eventTime %" PRId64, event.args->eventTime);
        ALOGE("Could not add the event to the queue. Resetting");
        reset();
    }
}