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

Commit 88c6ec9f authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix spinning TaskPersister" into oc-dev

parents ba21a120 2f9c7a2f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -209,11 +209,12 @@ class TaskSnapshotPersister {
                    SystemClock.sleep(DELAY_MS);
                }
                synchronized (mLock) {
                    if (!mWriteQueue.isEmpty()) {
                    final boolean writeQueueEmpty = mWriteQueue.isEmpty();
                    if (!writeQueueEmpty && !mPaused) {
                        continue;
                    }
                    try {
                        mQueueIdling = true;
                        mQueueIdling = writeQueueEmpty;
                        mLock.wait();
                        mQueueIdling = false;
                    } catch (InterruptedException e) {