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();
#define TTS_RETRY_COUNT 5
#define TTS_RETRY_MIN_COUNT 2
#define TTS_CONNECTION_RETRY_COUNT 10
+#define TTS_HELLO_RETRY_COUNT 40 // 500 ms * 40 = 20 sec
#define TTS_SPEED_MIN 1
#define TTS_SPEED_NORMAL 8