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

Commit 73fbbc59 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

le_audio: Add missing current state of group check

This CL adds missing check of current group state while trying to stop
group.

Tag: #feature
Bug: 263686512
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test
Change-Id: I8c9fc2bd23c2d2cca7f0bab67e564d1d13762190
parent 20044dc0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -863,7 +863,8 @@ bool LeAudioDeviceGroup::IsInTransition(void) {
}
}


bool LeAudioDeviceGroup::IsReleasingOrIdle(void) {
bool LeAudioDeviceGroup::IsReleasingOrIdle(void) {
  return target_state_ == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE;
  return (target_state_ == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE) ||
         (current_state_ == AseState::BTA_LE_AUDIO_ASE_STATE_IDLE);
}
}


bool LeAudioDeviceGroup::IsGroupStreamReady(void) {
bool LeAudioDeviceGroup::IsGroupStreamReady(void) {