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

Commit 6df5147a authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Improve state machine reconfiguration

Clean group state if configure does not succeed.
It could happen when device got disconnected during the release process.

Bug: 222674521
Bug: 150670922
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test
Change-Id: I7cbdc8b8ef9ba6aa5dcc6c8023fd75c001ceb3ca
parent f3c1bd87
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3299,12 +3299,12 @@ class LeAudioClientImpl : public LeAudioClient {
        stream_setup_start_timestamp_ = 0;
        if (group && group->IsPendingConfiguration()) {
          SuspendedForReconfiguration();
          if (!groupStateMachine_->ConfigureStream(group,
          if (groupStateMachine_->ConfigureStream(group,
                                                  current_context_type_)) {
            // DO SOMETHING
          }
            /* If configuration succeed wait for new status. */
            return;
          }
        }
        CancelStreamingRequest();
        HandlePendingAvailableContexts(group);
        break;