Fix a bug about app started event 21/233221/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 May 2020 06:06:55 +0000 (15:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 May 2020 06:06:55 +0000 (15:06 +0900)
Change-Id: I7bd4c2e8c3da2184053cdca949462b8c20556cc5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch_with_result.c

index 1b07455..d3c089b 100644 (file)
@@ -733,6 +733,8 @@ static gboolean __aul_error_handler(GIOChannel *io,
                res = aul_error_convert(res);
                if (res == AUL_R_LOCAL)
                        res = app_request_local(info->cmd, info->b);
+       } else {
+               __update_aul_reply_info(info->seq_num, res);
        }
 
        _W("Sequence(%s), result(%d)", info->seq_num, res);
@@ -742,9 +744,7 @@ static gboolean __aul_error_handler(GIOChannel *io,
                info->error_cb = NULL;
        }
 
-       if (res > 0) {
-               __update_aul_reply_info(info->seq_num, res);
-       } else {
+       if (res < 1) {
                r_info = __pop_aul_reply_info(info->seq_num);
                if (r_info)
                        __destroy_aul_reply_info(r_info);