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

Commit 982db96f authored by Alice Kuo's avatar Alice Kuo Committed by Automerger Merge Worker
Browse files

Clear the pending start stream request as the set state timeout am: 71f1530c...

Clear the pending start stream request as the set state timeout am: 71f1530c am: 87bc2571 am: 5bd64428

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2022157

Change-Id: Ic80900177cba68aededc08d90384c3dca978656b
parents 01ce2cf6 5bd64428
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -298,8 +298,7 @@ class LeAudioClientImpl : public LeAudioClient {


    /* Releasement didn't finished in time */
    /* Releasement didn't finished in time */
    if (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) {
    if (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) {
      audio_sender_state_ = AudioState::IDLE;
      CancelStreamingRequest();
      audio_receiver_state_ = AudioState::IDLE;
      LeAudioDevice* leAudioDevice = group->GetFirstActiveDevice();
      LeAudioDevice* leAudioDevice = group->GetFirstActiveDevice();
      LOG_ASSERT(leAudioDevice)
      LOG_ASSERT(leAudioDevice)
          << __func__ << " Shouldn't be called without an active device.";
          << __func__ << " Shouldn't be called without an active device.";