/* Set VCONF status for A2DP Disconnection */
_bt_set_device_values(FALSE, VCONFKEY_BT_DEVICE_A2DP_HEADSET_CONNECTED);
- /* Send A2DP(SRC Role) disconnected event to Application */
- param = g_variant_new("(is)", result, addr);
- _bt_send_event(BT_HEADSET_EVENT, BLUETOOTH_EVENT_AV_DISCONNECTED, param);
-
/* Remove data from the connected list */
_bt_remove_headset_from_list(BT_AUDIO_A2DP, addr);
if (req_info == NULL) {
BT_INFO("Audio Connect All request is also Not found..");
+ /* Send A2DP(SRC Role) disconnected event to Application */
+ param = g_variant_new("(is)", result, addr);
+ _bt_send_event(BT_HEADSET_EVENT, BLUETOOTH_EVENT_AV_DISCONNECTED, param);
+
req_info = _bt_get_request_info_data(BT_AUDIO_DISCONNECT, addr);
if (req_info == NULL) {
BT_INFO("Audio DisConnect All request is also Not found..");
}
} else {
BT_ERR("AV Disconnect request found for [%s], means disconnect request is successful", addr); /* DBUS return needed */
+ /* Send A2DP(SRC Role) disconnected event to Application */
+ param = g_variant_new("(is)", result, addr);
+ _bt_send_event(BT_HEADSET_EVENT, BLUETOOTH_EVENT_AV_DISCONNECTED, param);
goto check_wait_device;
}
check_wait_device: