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

Commit 71f1530c authored by Alice Kuo's avatar Alice Kuo
Browse files

Clear the pending start stream request as the set state timeout

Bug: 224234315
Test: observe the log behavior as epxected when the set state timeout
Change-Id: Ia597ed1fba91c88c876f786fdb135035b0da5791
parent b4a65c18
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.";