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

Commit ab9bc1c8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix crash on active LE Audio device switch" into main

parents f174ea34 892b40b6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1275,6 +1275,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_) {