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

Commit 6b1f22fe authored by Shunkai Yao's avatar Shunkai Yao
Browse files

Avoid Object.wait(0)

From java doc: If timeout is zero, however, then real time is not
taken into consideration and the thread simply waits until notified.

Bug: 298456150
Test: m
Change-Id: Id5cdf6a52a97fddb24d2fcf2dcaa6e7385eb7c46
parent 6f075fb8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4580,7 +4580,9 @@ public class AudioManager {
            synchronized (this) {
                while (!mQuit) {
                    final long timeToWait = timeOutTime - java.lang.System.currentTimeMillis();
                    if (timeToWait < 0) { break; }
                    if (timeToWait <= 0) {
                        break;
                    }
                    this.wait(timeToWait);
                }
            }