From 7c7d47a4f9a64b13bbeb5b8a171b92a7765ff531 Mon Sep 17 00:00:00 2001 From: ulgal-park Date: Fri, 10 Mar 2023 19:14:30 +0900 Subject: [PATCH] Change widget retry count and interval when engine not loaded Change-Id: Ia7b97d900f18dad2bec2d2e08864ba77af5d657d --- client/vc_widget_tidl.c | 2 ++ common/vc_defs.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.34.1