Invoke error callback when __prepare_cb is failed 39/271239/2
authorsooyeon <sooyeon.kim@samsung.com>
Thu, 17 Feb 2022 14:27:00 +0000 (23:27 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 16 Jun 2022 08:59:09 +0000 (08:59 +0000)
Change-Id: Ia03e13220dea3f67a1413ddf19a4c0560ae580c9
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts_core.c

index 090f0efdaa2259fa761614deeec5a8501c65ae6a..2664af82a509d31b30829f2bc073904fa4dc2337 100644 (file)
@@ -467,12 +467,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();
                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;
        }