From c147fdcb296ca88594d75271325d3fe4ad198a65 Mon Sep 17 00:00:00 2001 From: sooyeon Date: Tue, 29 Mar 2022 01:20:08 +0900 Subject: [PATCH] Add a checker whether requesting connection is failed or not Change-Id: I050f1be537e0267f2a0f2fb58928d5feaa1ce24b Signed-off-by: sooyeon --- client/tts_tidl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/tts_tidl.c b/client/tts_tidl.c index b6afcef..5f42bff 100644 --- a/client/tts_tidl.c +++ b/client/tts_tidl.c @@ -337,6 +337,11 @@ static void __request_tidl_connect(tts_tidl_info_s* info) } int ret = rpc_port_proxy_tts_connect(info->rpc_h); + if (RPC_PORT_ERROR_NONE != ret) { + SLOG(LOG_INFO, TAG_TTSC, "[INFO] Fail to request connection to stub. ret(%d)", ret); + return; + } + SLOG(LOG_INFO, TAG_TTSC, "[INFO] Request connection to stub. ret(%d)", ret); info->connection_requesting = true; -- 2.7.4