From 967265c001896e6ac2ee5ddacb0f5e9f694ae77c Mon Sep 17 00:00:00 2001 From: sooyeon Date: Thu, 17 Feb 2022 23:27:00 +0900 Subject: [PATCH] Invoke error callback when __prepare_cb is failed Change-Id: Ia03e13220dea3f67a1413ddf19a4c0560ae580c9 Signed-off-by: sooyeon --- client/tts_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/tts_core.c b/client/tts_core.c index 090f0efd..2664af82 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -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; } -- 2.34.1