From edd1167d08522e92192827c990dffb76d5a5f83c Mon Sep 17 00:00:00 2001 From: sooyeon Date: Thu, 17 Feb 2022 23:34:41 +0900 Subject: [PATCH] Invoke error callback when __prepare_cb is failed Change-Id: Ic27aae30b4b97e499f875ee480dfbae9f173be45 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 48843bf1..71a98fa3 100644 --- a/client/tts_core.c +++ b/client/tts_core.c @@ -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; } -- 2.34.1