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

Commit 166e3b50 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

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

* commit 'ae61b950d29a1e2c3237b64513b4b0e6fad77b9b':
  AudioService: wait for init completed to handle media server restart
parents 14ea1133 eb4b8a27
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);