summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/bta/le_audio/state_machine.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/bta/le_audio/state_machine.cc b/system/bta/le_audio/state_machine.cc
index 734a45341f..20ae741a04 100644
--- a/system/bta/le_audio/state_machine.cc
+++ b/system/bta/le_audio/state_machine.cc
@@ -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(),