From: ulgal-park Date: Fri, 10 Mar 2023 10:14:30 +0000 (+0900) Subject: Change widget retry count and interval when engine not loaded X-Git-Tag: submit/tizen/20230313.042534~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7d47a4f9a64b13bbeb5b8a171b92a7765ff531;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Change widget retry count and interval when engine not loaded Change-Id: Ia7b97d900f18dad2bec2d2e08864ba77af5d657d --- diff --git a/client/vc_widget_tidl.c b/client/vc_widget_tidl.c index 9b6a80b..d6fbbc9 100644 --- a/client/vc_widget_tidl.c +++ b/client/vc_widget_tidl.c @@ -417,6 +417,8 @@ int vc_widget_tidl_request_hello() if (!g_proxy_tidl_info->connected) { SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Proxy Not Connected"); __request_tidl_connect(); + SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Engine not loaded, sleep 500ms"); + usleep(500000); return VC_ERROR_OPERATION_FAILED; } diff --git a/common/vc_defs.h b/common/vc_defs.h index d6ad568..e3533bc 100644 --- a/common/vc_defs.h +++ b/common/vc_defs.h @@ -269,7 +269,7 @@ extern "C" { #define VC_INVALID_TTS_UID 0 #define VC_ENGINE_APPID_LEN 256 #define VCM_TIDL_RETRY_COUNT 200 -#define VC_TIDL_RETRY_COUNT 20 +#define VC_TIDL_RETRY_COUNT 30 #define VC_MGR_DEFAULT_FARFIELD_DUCKING_RATIO 0.0 #define VC_MGR_DEFAULT_NEARFIELD_DUCKING_RATIO 0.7