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

Commit 8f7be7db authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 842b6b83: am ae61b950: AudioService: wait for init completed to handle media server restart

* commit '842b6b83f10fdab75d4685ac38578ce4627845ca':
  AudioService: wait for init completed to handle media server restart
parents 2923df53 166e3b50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3756,7 +3756,8 @@ public class AudioService extends IAudioService.Stub {
                    break;

                case MSG_MEDIA_SERVER_DIED:
                    if (AudioSystem.checkAudioFlinger() != AudioSystem.AUDIO_STATUS_OK) {
                    if (!mSystemReady ||
                            (AudioSystem.checkAudioFlinger() != AudioSystem.AUDIO_STATUS_OK)) {
                        Log.e(TAG, "Media server died.");
                        sendMsg(mAudioHandler, MSG_MEDIA_SERVER_DIED, SENDMSG_NOOP, 0, 0,
                                null, 500);