From c5b9f489c016d7b0c0b77dcc4aef69c163ee67db Mon Sep 17 00:00:00 2001 From: ulgal-park Date: Thu, 25 Aug 2022 16:35:35 +0900 Subject: [PATCH] send error to client when server disconnected Change-Id: I8318e562a6c16c3cb8b3375de079883fcddcbb00 --- client/vc_mgr_tidl.c | 3 +-- client/vc_tidl.c | 2 ++ client/vc_widget_tidl.c | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/vc_mgr_tidl.c b/client/vc_mgr_tidl.c index a6218ba..672ea2e 100644 --- a/client/vc_mgr_tidl.c +++ b/client/vc_mgr_tidl.c @@ -333,8 +333,7 @@ static void __on_disconnected(rpc_port_proxy_vc_mgr_proxy_vc_mgr_h h, void *user SLOG(LOG_INFO, TAG_VCM, "Disonnected to server"); - SLOG(LOG_INFO, TAG_VCM, "Re-connection start"); - __vc_mgr_cb_error(VC_ERROR_SERVICE_RESET, -1, "Server Disconnected, re-launch"); + __vc_mgr_cb_error(VC_ERROR_SERVICE_RESET, -1, "Server Disconnected"); } static void __on_rejected(rpc_port_proxy_vc_mgr_proxy_vc_mgr_h h, void *user_data) diff --git a/client/vc_tidl.c b/client/vc_tidl.c index 7753589..205ee2f 100644 --- a/client/vc_tidl.c +++ b/client/vc_tidl.c @@ -113,6 +113,8 @@ static void __on_disconnected(rpc_port_proxy_vc_proxy_vc_h h, void* user_data) /* retry to connect */ SLOG(LOG_INFO, TAG_VCC, "[INFO] Disconnected to server"); + __vc_cb_error(VC_ERROR_SERVICE_RESET, "Server Disconnected"); + } static void __on_rejected(rpc_port_proxy_vc_proxy_vc_h h, void* user_data) diff --git a/client/vc_widget_tidl.c b/client/vc_widget_tidl.c index f1203ff..36b68ec 100644 --- a/client/vc_widget_tidl.c +++ b/client/vc_widget_tidl.c @@ -159,8 +159,7 @@ static void __on_disconnected(rpc_port_proxy_vc_widget_proxy_vc_widget_h h, void SLOG(LOG_INFO, TAG_VCW, "Disonnected to server"); - SLOG(LOG_INFO, TAG_VCW, "Re-connection start"); - __vc_widget_cb_error(VC_ERROR_SERVICE_RESET, -1, "Server Disconnected, re-launch"); + __vc_widget_cb_error(VC_ERROR_SERVICE_RESET, -1, "Server Disconnected"); } static void __on_rejected(rpc_port_proxy_vc_widget_proxy_vc_widget_h h, void *user_data) -- 2.7.4