If the result of sending the launch request is not -ECOMM,
AMD doesn't check whether the retrying count is over 5 or not.
Change-Id: I32315eb53cd4525f0d249bcb57f0f193dd156c70
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
ret = _launchpad_launch(kb, target_uid);
if (ret < 0) {
- __failure_count++;
- _E("[%u] Failed to send launch request. appid(%s), error(%d)",
- __failure_count, handle->appid, ret);
+ _E("Failed to send launch request. appid(%s), error(%d)",
+ handle->appid, ret);
_noti_send(AMD_NOTI_MSG_LAUNCH_DO_STARTING_APP_CANCEL,
ret, 0, NULL, NULL);
+ if (ret != -ECOMM)
+ return ret;
+
+ __failure_count++;
if (__failure_count > _config_get_max_launch_failure()) {
_launchpad_recover_launcher(target_uid);
__failure_count = 0;
fd = __create_launchpad_client_sock(pad_type, uid);
if (fd < 0)
- return -1;
+ return -ECOMM;
res = aul_sock_send_bundle_with_fd(fd, cmd, kb, AUL_SOCK_ASYNC);
if (res < 0) {