From: sooyeon.kim Date: Mon, 24 Feb 2020 10:22:39 +0000 (+0900) Subject: Add to set timer as NULL when returning EINA_FALSE X-Git-Tag: accepted/tizen/unified/20200302.041942^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb5d667f3efbf72adb1e151b0e4bf34b044d4f1d;p=platform%2Fcore%2Fuifw%2Ftts.git Add to set timer as NULL when returning EINA_FALSE Change-Id: I21373ae8cecb0f40d4c92faa5229a76e1ab4c22f Signed-off-by: sooyeon.kim --- diff --git a/client/tts.c b/client/tts.c index 8b2c42b..abf38e1 100644 --- a/client/tts.c +++ b/client/tts.c @@ -2368,6 +2368,7 @@ static Eina_Bool __tts_notify_state_changed(void *data) /* check handle */ if (NULL == client) { SLOG(LOG_WARN, TAG_TTSC, "Fail to notify state changed : A handle is not valid"); + g_check_state_timer = NULL; return EINA_FALSE; } @@ -2380,6 +2381,8 @@ static Eina_Bool __tts_notify_state_changed(void *data) SLOG(LOG_WARN, TAG_TTSC, "[WARNING] State changed callback is null"); } + g_check_state_timer = NULL; + return EINA_FALSE; } diff --git a/server/ttsd_server.c b/server/ttsd_server.c index 27488ce..aaeb596 100644 --- a/server/ttsd_server.c +++ b/server/ttsd_server.c @@ -732,6 +732,7 @@ Eina_Bool ttsd_cleanup_client(void *data) } else { ecore_timer_add(0, __quit_ecore_loop, NULL); SLOG(LOG_ERROR, tts_tag(), "[Server] Deleted timer"); + g_check_client_timer = NULL; return EINA_FALSE; }