}
ret = app_context_get_pid(app_context, pid);
- if (APP_MANAGER_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to get pid, ret(%d), appid(%s)", ret, appid);
- return VC_DB_ERROR_OPERATION_FAILED;
+ int destroy_ret = app_context_destroy(app_context);
+ if (APP_MANAGER_ERROR_NONE != destroy_ret) {
+ SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to destroy app context, ret(%d), appid(%s)", destroy_ret, appid);
}
- ret = app_context_destroy(app_context);
if (APP_MANAGER_ERROR_NONE != ret) {
- SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to destroy app context, ret(%d), appid(%s)", ret, appid);
+ SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] Fail to get pid, ret(%d), appid(%s)", ret, appid);
return VC_DB_ERROR_OPERATION_FAILED;
}
} else {
}
ret = app_manager_resume_app(app_context);
+ int destroy_ret = app_context_destroy(app_context);
+ if (APP_MANAGER_ERROR_NONE != destroy_ret) {
+ SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to destroy app_context, ret(%d), appid(%s)", destroy_ret, appid);
+ }
+
if (APP_MANAGER_ERROR_NONE != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to resume app, ret(%d), appid(%s)", ret, appid);
return VCD_ERROR_OPERATION_FAILED;
}
+
return VCD_ERROR_NONE;
}