static int g_voice_type = -1;
static int g_speed = -1;
+static int g_retry_cnt = 0;
/* for checking engine update */
static pkgmgr_client* g_pkgmgr = NULL;
SLOG(LOG_ERROR, TAG_TTSC, "@@@ Send Hello");
}
+ g_retry_cnt++;
+ if (TTS_HELLO_RETRY_COUNT == g_retry_cnt) {
+ SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Stop to send hello, retry count reaches the limit");
+ g_retry_cnt = 0;
+ return EINA_FALSE;
+ }
+
if (!g_hello_timer) {
SLOG(LOG_ERROR, TAG_TTSC, "@@@ Call checking Hello timer callback");
g_hello_timer = ecore_timer_add(0.5, __send_hello, tts);
if (NULL == g_hello_timer) {
SLOG(LOG_ERROR, TAG_TTSC, "@@@ Call checking Hello timer callback");
+ g_retry_cnt = 0;
ecore_thread_main_loop_begin();
ecore_timer_add(0.0, __send_hello, (void*)tts);
ecore_thread_main_loop_end();