Remove unnecessary condition check
authorhyunho <hhstark.kang@samsung.com>
Mon, 23 Jul 2018 11:39:05 +0000 (20:39 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 26 Jul 2018 06:32:52 +0000 (15:32 +0900)
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 <hhstark.kang@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index 61af5943875bdfdfa5d79d47f6352f838f170dca..1a792800b6f9fd005f0cae469fc570b387b6961a 100644 (file)
@@ -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) {