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

Commit 83031e97 authored by Johanna Ye's avatar Johanna Ye
Browse files

Allow existing HID pending connections to continue.

Currently, BT_STATUS_BUSY will be sent back to JNI when a new connection request comes from the same remote device, and end the connection instead of waiting for the previous connection attempt to finish.

Tag: #stability
Bug: 174127136
Test: manual through repeated connections in ADT3 OOBE
Change-Id: I714c7a1b01b2d5e9235a1404711f795f3136fc68
parent 4c3e0a88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ static jboolean connectHidNative(JNIEnv* env, jobject object,

  jboolean ret = JNI_TRUE;
  bt_status_t status = sBluetoothHidInterface->connect((RawAddress*)addr);
  if (status != BT_STATUS_SUCCESS) {
  if (status != BT_STATUS_SUCCESS && status != BT_STATUS_BUSY) {
    ALOGE("Failed HID channel connection, status: %d", status);
    ret = JNI_FALSE;
  }