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

Commit 343dad3c authored by Wally Yau's avatar Wally Yau Committed by Android (Google) Code Review
Browse files

Merge "Make sure waitRelative is called when waitTime != INT64_MAX"

parents 82ceac02 884de21c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -532,7 +532,7 @@ bool AudioPolicyService::AudioCommandThread::threadLoop()
        mLock.unlock();
        svc.clear();
        mLock.lock();
        if (!exitPending() && mAudioCommands.isEmpty()) {
        if (!exitPending() && (mAudioCommands.isEmpty() || waitTime != INT64_MAX)) {
            // release delayed commands wake lock
            release_wake_lock(mName.string());
            ALOGV("AudioCommandThread() going to sleep");