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

Commit 892b40b6 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix crash on active LE Audio device switch

Bug: 344739262
Test: reconnect with 2nd pair of LEA buds
Change-Id: I654164eb6a9b531675047f0023b610ae55ff32a7
parent d232d878
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1274,6 +1274,12 @@ class LeAudioClientImpl : public LeAudioClient {
        return;
      }
      log::info("switching active group to: {}", group_id);

      auto result =
          CodecManager::GetInstance()->UpdateActiveUnicastAudioHalClient(
              le_audio_source_hal_client_.get(),
              le_audio_sink_hal_client_.get(), false);
      log::assert_that(result, "Could not update session to codec manager");
    }

    if (!le_audio_source_hal_client_) {