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

Commit a2a363f7 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Gerrit Code Review
Browse files

Merge "leaudio: Fix reconnection issue"

parents 62c7f2aa b4253edc
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1835,8 +1835,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, reconnection_mode_, false);