Adjust timer registration 50/266050/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 4 Nov 2021 23:22:27 +0000 (08:22 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 4 Nov 2021 23:22:27 +0000 (08:22 +0900)
Currently, the timing issue exists if the idler is invoked immediately.
Before adding the request to the idler, the timer will be added to fix
the timing issue.

Change-Id: Ief5ea019371aa1c6da763a29bdcf2688444b67eb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_launch.c

index dd5acbc..c686dd5 100644 (file)
@@ -495,8 +495,8 @@ static bool __received_event_cb(int fd, int condition, void *user_data)
                return true;
        }
 
-       __process_app_pkt(pkt, fd);
        aul_worker_add_anr_timer(worker, pkt->cmd);
+       __process_app_pkt(pkt, fd);
        free(pkt);
 
        return true;
@@ -536,8 +536,8 @@ static bool __connected_event_cb(int fd, int condition, void *user_data)
                }
        }
 
-       __process_app_pkt(pkt, clifd);
        aul_worker_add_anr_timer(worker, pkt->cmd);
+       __process_app_pkt(pkt, clifd);
 
        if (pkt->cmd == WIDGET_GET_CONTENT)
                clifd = -1;