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

Commit 92d63493 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Fix reconnection issue" into tm-qpr-dev am: 17164aa6

parents 59315355 17164aa6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1817,8 +1817,12 @@ class LeAudioClientImpl : public LeAudioClient {
      leAudioDevices_.Remove(address);
      return;
    }
    /* Attempt background re-connect if disconnect was not intended locally */
    if (reason != GATT_CONN_TERMINATE_LOCAL_HOST) {
    /* Attempt background re-connect if disconnect was not intended locally
     * or if autoconnect is set and device got disconnected because of some
     * issues
     */
    if (reason != GATT_CONN_TERMINATE_LOCAL_HOST ||
        leAudioDevice->autoconnect_flag_) {
      leAudioDevice->SetConnectionState(
          DeviceConnectState::CONNECTING_AUTOCONNECT);
      BTA_GATTC_Open(gatt_if_, address, BTM_BLE_BKG_CONNECT_ALLOW_LIST, false);