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

Commit da20982f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "BatteryStats: explicitly copy the wakeup reasons"

parents 0836d630 2c7efc70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public:
        {
            std::unique_lock<std::mutex> reasonsLock(mReasonsMutex, std::defer_lock);
            if (reasonsLock.try_lock() && mWakeupReasons.empty()) {
                mWakeupReasons = std::move(wakeupReasons);
                mWakeupReasons = wakeupReasons;
                reasonsCaptured = true;
            }
        }