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

Commit bef939e2 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "le_audio: Deactivate ASEs while whole set is being lost" into tm-qpr-dev am: ed092cb8

parents 6217df19 ed092cb8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -617,6 +617,9 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      return;
    }

    /* mark ASEs as not used. */
    leAudioDevice->DeactivateAllAses();

    /* If group is in Idle there is nothing to do here */
    if ((group->GetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) &&
        (group->GetTargetState() == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE)) {
@@ -625,9 +628,6 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
      return;
    }

    /* mark ASEs as not used. */
    leAudioDevice->DeactivateAllAses();

    LOG_DEBUG(
        " device: %s, group connected: %d, all active ase disconnected:: %d",
        leAudioDevice->address_.ToString().c_str(),