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

Commit eb66372c authored by Sal Savage's avatar Sal Savage
Browse files

Handle connection failures on the control channel properly

This patch fixes a bug where a failed control channel connection would
fail to exit early. Status was updated and broadcasted to be connected
even when we were not.

Tag: #stability
Bug: 175275589
Test: atest BluetoothInstrumentationTests
Change-Id: Ic089d6317c4c9c7b8830dd1f1c0ff27cb1d008f2
parent cce79b1b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -667,6 +667,7 @@ void handle_rc_connect(tBTA_AV_RC_OPEN* p_rc_open) {
    BTIF_TRACE_ERROR("%s: Connect failed with error code: %d", __func__,
                     p_rc_open->status);
    p_dev->rc_connected = false;
    return;
  }

  // check if already some RC is connected