From 498691d6696a8f951c552f2730e3928a6a29df3d Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 21 May 2020 19:24:45 +0900 Subject: [PATCH] Fix aul_status_update function If the status is equal to the previous status, the function returns. Change-Id: I12a05d46a6af4d75b3911ffaca85464ed4821736 Signed-off-by: Hwankyu Jhun --- src/status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status.c b/src/status.c index 44c0aed..78d24fb 100644 --- a/src/status.c +++ b/src/status.c @@ -48,6 +48,9 @@ API int aul_status_update(int status) app_status_cb_info_t *cb; GList *iter; + if (app_status == status) + return 0; + app_status = status; ret = aul_sock_send_raw(AUL_UTIL_PID, getuid(), APP_STATUS_UPDATE, -- 2.7.4