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

Commit e89dfc50 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Cherrypicker Worker
Browse files

LeAudio: Fix missing alarm canceling

Restore incorrectly removed alarm cancel when remote goes to CONFIGURED
state after Releasing

9ddba66b leaudio: Fix race between ASE state and CIS disconnection

Bug: 255291874
Test: manually with earbuds using Ase caching
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: Ica70212255e99ddb384590ddd0a9257c3592aaae
(cherry picked from commit 08bc5ece)
Merged-In: Ica70212255e99ddb384590ddd0a9257c3592aaae
parent 3a1c422f
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -1873,6 +1873,8 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
            return;
            return;
          }
          }


          if (alarm_is_scheduled(watchdog_)) alarm_cancel(watchdog_);

          state_machine_callbacks_->StatusReportCb(
          state_machine_callbacks_->StatusReportCb(
              group->group_id_, GroupStreamStatus::CONFIGURED_AUTONOMOUS);
              group->group_id_, GroupStreamStatus::CONFIGURED_AUTONOMOUS);
        }
        }