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

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

Merge "Watchdog:do not need add or clear operation when mMonitorQueue is empty." into main

parents cc5c410d 5191964d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ public class Watchdog implements Dumpable {
        public void scheduleCheckLocked(long handlerCheckerTimeoutMillis) {
            mWaitMaxMillis = handlerCheckerTimeoutMillis;

            if (mCompleted) {
            if (mCompleted && !mMonitorQueue.isEmpty()) {
                // Safe to update monitors in queue, Handler is not in the middle of work
                mMonitors.addAll(mMonitorQueue);
                mMonitorQueue.clear();