Fix missing response issue of getting bonded device and devices. 57/301957/1
authorHarsh Jain <jain.harsh@samsung.com>
Tue, 28 Nov 2023 10:50:26 +0000 (16:20 +0530)
committerHarsh Jain <jain.harsh@samsung.com>
Tue, 28 Nov 2023 10:56:51 +0000 (16:26 +0530)
Response is missing if the request of getting bonded device and devices is coming
while bonded_list_retrieved not set.

Change-Id: I0abd411ba3acdf59518b54293f8d34663de52a0c
Signed-off-by: Harsh Jain <jain.harsh@samsung.com>
bt-service/services/device/bt-service-bonded-device.c

index e9a90e6d625c1d004c32d9f72b01b54aa8376d65..136afb81c1a410da7f5463ee2ef7c1d0ac521d01 100644 (file)
@@ -458,7 +458,8 @@ void _bt_device_handle_paired_address_list(bluetooth_device_address_t *addr_list
                BT_DBG("No paired device found");
                bonded_list_index = 0;
                bonded_list_retrieved = TRUE;
-               /* Send reply if request for BT_GET_BONDED_DEVICES is pending */
+               /* Send reply if request for BT_GET_BONDED_DEVICE and BT_GET_BONDED_DEVICES is pending */
+               __bt_handle_pending_request(BLUETOOTH_ERROR_NONE, BT_GET_BONDED_DEVICE);
                __bt_handle_pending_request(BLUETOOTH_ERROR_NONE, BT_GET_BONDED_DEVICES);
                return;
        }