From d829f5236af72a8083c36f370c3a763477aa20df Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 23 Jul 2018 20:39:05 +0900 Subject: [PATCH] Remove unnecessary condition check Now widget instance can not be launched twice for same instance id. So, we don't need to check restart flag when first buffer is added. Change-Id: I33ee315440d39c6e080bd793b5c7ce4f54f0ff97 Signed-off-by: hyunho --- widget_viewer_evas/src/widget_viewer_evas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widget_viewer_evas/src/widget_viewer_evas.c b/widget_viewer_evas/src/widget_viewer_evas.c index 61af5943..1a792800 100644 --- a/widget_viewer_evas/src/widget_viewer_evas.c +++ b/widget_viewer_evas/src/widget_viewer_evas.c @@ -447,8 +447,9 @@ static void __screen_connector_toolkit_evas_added_cb(const char *appid, const ch return; } - if (info->restart || (info->instance_id == NULL) || (strcmp(info->instance_id, instance_id) != 0)) { - LOGE("Wrong added info, %s %s", appid, info->widget_id);/* LCOV_EXCL_LINE */ + if ((info->instance_id == NULL) || (strcmp(info->instance_id, instance_id) != 0)) { + LOGE("Wrong added info, appid(%s) info instance_id(%s), instance_id(%s)",/* LCOV_EXCL_LINE */ + appid, info->instance_id, instance_id);/* LCOV_EXCL_LINE */ if (s_info.restarting_instance_id && info->instance_id && strcmp(s_info.restarting_instance_id, info->instance_id) == 0) { -- 2.34.1