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

Commit 3676d383 authored by Grzegorz Kolodziejczyk's avatar Grzegorz Kolodziejczyk Committed by Automerger Merge Worker
Browse files

Merge "le_audio: Deactivate ASEs while whole set is being lost" am: 792bc3a9

parents 37a6bc6a 792bc3a9
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(),