Fix missing response issue of getting bonded devices 31/291231/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:16:50 +0000 (11:16 +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 b73c65010bffeba3adfbda1d48c28f443a6d6889..e9a90e6d625c1d004c32d9f72b01b54aa8376d65 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;
        }