From: ulgal-park Date: Thu, 25 Aug 2022 07:35:35 +0000 (+0900) Subject: send error to client when server disconnected X-Git-Tag: submit/tizen/20220826.042422~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5b9f489c016d7b0c0b77dcc4aef69c163ee67db;p=platform%2Fcore%2Fuifw%2Fvoice-control.git send error to client when server disconnected Change-Id: I8318e562a6c16c3cb8b3375de079883fcddcbb00 --- 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)