Invoke error callback when __prepare_cb is failed 41/271241/1
authorsooyeon <sooyeon.kim@samsung.com>
Thu, 17 Feb 2022 14:34:41 +0000 (23:34 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Thu, 17 Feb 2022 14:34:41 +0000 (23:34 +0900)
Change-Id: Ic27aae30b4b97e499f875ee480dfbae9f173be45
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts_core.c

index 48843bf1b4142e982d4bbc1efaa3ea7f88a3b00d..71a98fa34b7805693ff188201e75c5f8db5f9990 100644 (file)
@@ -461,12 +461,15 @@ static Eina_Bool __prepare_cb(void *data)
 
        client->prepare_count++;
        if (TTS_HELLO_RETRY_COUNT == client->prepare_count) {
-               SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Stop to prepare, retry count reaches the limit");
+               SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to prepare, retry count reaches the limit");
 
                bool is_launched = __is_engine_launched(tts_client_get_mode(client));
                SLOG(LOG_INFO, TAG_TTSC, "[INFO] tts engine is launched(%d)", is_launched);
 
                client->hello_timer = NULL;
+
+               tts_core_notify_error_async(client, TTS_ERROR_TIMED_OUT, -1, "[ERROR] Fail to prepare. Please call tts_prepare() again.");
+
                return EINA_FALSE;
        }