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

Commit 8222f04e authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 0bc0f109: Merge "audioservice: always acquire wake lock as AudioService" into klp-dev

* commit '0bc0f109':
  audioservice: always acquire wake lock as AudioService
parents e40b3033 0bc0f109
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2687,7 +2687,11 @@ public class AudioService extends IAudioService.Stub {
     */
    private void queueMsgUnderWakeLock(Handler handler, int msg,
            int arg1, int arg2, Object obj, int delay) {
        final long ident = Binder.clearCallingIdentity();
        // Always acquire the wake lock as AudioService because it is released by the
        // message handler.
        mAudioEventWakeLock.acquire();
        Binder.restoreCallingIdentity(ident);
        sendMsg(handler, msg, SENDMSG_QUEUE, arg1, arg2, obj, delay);
    }