comp-manager: Fixed issue with group dismiss in COMP_REQ_EJECT_DEVICE command
authorSaurav Babu <saurav.babu@samsung.com>
Wed, 31 Jan 2018 03:35:13 +0000 (09:05 +0530)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 2 Jul 2018 10:38:47 +0000 (19:38 +0900)
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
src/companion-manager/src/comp_iot.c

index f2ca943..99982c0 100755 (executable)
@@ -166,13 +166,15 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                                LOG_DEBUG("Request eject");
                                char *group_name;
                                char *uuid;
+                               comp_context_t *comp_ctx = comp_context_get_context();
 
                                iotcon_query_lookup(query, "name", &group_name);
                                iotcon_query_lookup(query, "id", &uuid);
 
-                               LOG_DEBUG("group_name : %s, UUID : %s", group_name, uuid);
+                               LOG_DEBUG("group_name : %s, Self UUID : %s Target UUID : %s",
+                                                 group_name, comp_ctx->device_uuid, uuid);
 
-                               result = comp_group_dismiss(group_name, uuid);
+                               result = comp_group_dismiss(comp_ctx->device_uuid, uuid);
                                arg = g_strdup(uuid);
 
                        } else if (command == COMP_REQ_DELETE_GROUP) {