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

Commit 884de21c authored by Wally Yau's avatar Wally Yau
Browse files

Make sure waitRelative is called when waitTime != INT64_MAX

b/19870971

(cherry picked from commit c600af1459c455583e071e653f0d998032aa423e)

Change-Id: Ic6bb54067d76c96ff6fc45431dc2d72db9f0a3a8
parent ec648447
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");