Add to set timer as NULL when returning EINA_FALSE 89/225789/1 accepted/tizen/unified/20200302.041942 submit/tizen/20200228.062816
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 24 Feb 2020 10:22:39 +0000 (19:22 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Mon, 24 Feb 2020 10:22:19 +0000 (10:22 +0000)
Change-Id: I21373ae8cecb0f40d4c92faa5229a76e1ab4c22f
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
client/tts.c
server/ttsd_server.c

index 8b2c42b..abf38e1 100644 (file)
@@ -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;
 }
 
index 27488ce..aaeb596 100644 (file)
@@ -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;
        }