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

Commit 1b35b076 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 11794304 from b3cefe3a to 24Q3-release

Change-Id: I63c04827111512e966027bd6443177cc41517d6e
parents 860e4952 b3cefe3a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -119,6 +119,8 @@ class Sensors : public BnSensors, public ISensorsEventCallback {

    // Utility function to delete the Event Flag
    void deleteEventFlag() {
        // Hold the lock to ensure we don't delete the flag while it's being used in postEvents()
        std::lock_guard<std::mutex> lock(mWriteLock);
        if (mEventQueueFlag != nullptr) {
            status_t status = EventFlag::deleteEventFlag(&mEventQueueFlag);
            if (status != OK) {