From cde0f3c86f3674d25b8b39a2c590202c2920e064 Mon Sep 17 00:00:00 2001 From: Abhay Agarwal Date: Thu, 21 Apr 2022 13:02:17 +0530 Subject: [PATCH] Fix device addition for multiple apps Change-Id: Id51a9bd6cadee423c3c58bd258d9feb1a753a5ca Signed-off-by: Abhay Agarwal --- ua-daemon/src/ua-manager-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ua-daemon/src/ua-manager-core.c b/ua-daemon/src/ua-manager-core.c index a3618c3..c0d3e22 100755 --- a/ua-daemon/src/ua-manager-core.c +++ b/ua-daemon/src/ua-manager-core.c @@ -1364,7 +1364,7 @@ static void __uam_core_add_dev_to_list( UAM_DBG("device-id %s", dev_info->device_id); - l = g_slist_find_custom(devices, dev_info->device_id, __compare_device_id); + l = g_slist_find_custom(devices, dev_info, __compare_device_id_and_appnum); if (NULL != l) { UAM_DBG("The device already exists"); device = l->data; -- 2.7.4