Merge "Add log to leave string length" into tizen
authorWonnam Jang <wn.jang@samsung.com>
Mon, 2 Mar 2020 04:27:27 +0000 (04:27 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 2 Mar 2020 04:27:27 +0000 (04:27 +0000)
client/tts.c
server/ttsd_server.c

index 47b48ed..1637606 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;
        }