Remove unnecessary instance termination logic 72/221672/1
authorhyunho <hhstark.kang@samsung.com>
Tue, 7 Jan 2020 01:49:42 +0000 (10:49 +0900)
committerhyunho <hhstark.kang@samsung.com>
Tue, 7 Jan 2020 01:49:42 +0000 (10:49 +0900)
Terminating instance before launch logic is not needed since
only one instance launching is guaranteed by launch_list and
launched instance's buffer waiting logic.

Change-Id: If5215e961aa438cda8c761c8d102f55b0aabfc8e
Signed-off-by: hyunho <hhstark.kang@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index 9b0e71c..b8326e4 100644 (file)
@@ -679,7 +679,6 @@ static void __launch_instance()
        struct widget_info *info;
        char *instance_id;
        int w, h;
-       int ret;
        screen_connector_toolkit_evas_ops ops;
 
        if (s_info.launch_list == NULL) {
@@ -718,12 +717,6 @@ static void __launch_instance()
                        SCREEN_CONNECTOR_SCREEN_TYPE_WIDGET,
                        info);
 
-       if (info->restart) {
-               ret = widget_instance_terminate(info->instance_id);
-               if (ret != 0)
-                       LOGW("widget_instance_terminate failed: %d", ret);
-       }
-
        __display_loading_text(info);
        info->pid = widget_instance_launch(info->instance_id, info->content_info, w, h);
        info->restart = false;