Change-Id: I820b4c3d3fe6af79629fecd998b253fe615ffed6
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
present_users = g_slist_prepend(present_users, tech->device->user);
} else {
/* If user not in the present list then only add it to absent list */
- if (!l2)
- absent_users = g_slist_prepend(absent_users, tech->device->user);
+ if ((NULL == l2) && (NULL == g_slist_find_custom(
+ absent_users, &(tech->device->user->user_id),
+ __compare_user_id)))
+ absent_users = g_slist_prepend(absent_users, tech->device->user);
}
}