Fix missing response issue of getting bonded devices 11/291211/1
authorWootak Jung <wootak.jung@samsung.com>
Wed, 12 Apr 2023 02:16:50 +0000 (11:16 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 12 Apr 2023 02:25:09 +0000 (11:25 +0900)
response is missing if the request of getting bonded devices is coming
while bonded_list_retrieved not set

Change-Id: Ic8cf375f2272b7885aee609adcacb483ff5086c3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service/services/device/bt-service-bonded-device.c

index 2ff4cb7..e4d19eb 100644 (file)
@@ -458,6 +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 */
+               __bt_handle_pending_request(BLUETOOTH_ERROR_NONE, BT_GET_BONDED_DEVICES);
                return;
        }