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

Commit 55f9da43 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "leaudio: Fix handing disconnect in OOR scenario"

parents 5455f2f5 7040d743
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1523,13 +1523,14 @@ class LeAudioClientImpl : public LeAudioClient {
    }

    BtaGattQueue::Clean(leAudioDevice->conn_id_);
    BTA_GATTC_Close(leAudioDevice->conn_id_);

    /* Remote in bad state, force ACL Disconnection. */
    if (acl_force_disconnect) {
      leAudioDevice->DisconnectAcl();
      leAudioDevice->SetConnectionState(
          DeviceConnectState::DISCONNECTING_AND_RECOVER);
    } else {
      BTA_GATTC_Close(leAudioDevice->conn_id_);
    }
  }