Modify to exit immediately after init failed 57/183957/1 master
authorjunkyu han <junkyu.han@samsung.com>
Thu, 12 Jul 2018 11:42:12 +0000 (20:42 +0900)
committerjunkyu han <junkyu.han@samsung.com>
Thu, 12 Jul 2018 11:42:12 +0000 (20:42 +0900)
Change-Id: I12239962f237e7f1e93e63f58559de2fe620c138

src/package_worker.c

index 0c09578..29083d8 100644 (file)
@@ -126,11 +126,11 @@ static void service_app_control(app_control_h app_control, void *data)
 
        ret = app_control_get_extra_data(app_control, "id", &cmd_id);
        if (ret != APP_CONTROL_ERROR_NONE)
-               service_app_exit();
+               goto DONE;
 
        ret = package_worker_report_init(cmd_id);
        if (ret < 0)
-               service_app_exit();
+               goto DONE;
 
        ret = app_control_get_extra_data(app_control, "operation", &operation);
        if (ret != APP_CONTROL_ERROR_NONE) {