From: junkyu han Date: Thu, 12 Jul 2018 11:42:12 +0000 (+0900) Subject: Modify to exit immediately after init failed X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=HEAD;p=apps%2Fnative%2Fttsd-worker-package.git Modify to exit immediately after init failed Change-Id: I12239962f237e7f1e93e63f58559de2fe620c138 --- diff --git a/src/package_worker.c b/src/package_worker.c index 0c09578..29083d8 100644 --- a/src/package_worker.c +++ b/src/package_worker.c @@ -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) {