Add a checker whether requesting connection is failed or not 40/272940/2
authorsooyeon <sooyeon.kim@samsung.com>
Mon, 28 Mar 2022 16:20:08 +0000 (01:20 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 16 Jun 2022 08:58:18 +0000 (08:58 +0000)
Change-Id: I050f1be537e0267f2a0f2fb58928d5feaa1ce24b
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts_tidl.c

index b6afcef4ebe06d3b4b9892ee54210baa2101bfb0..5f42bff6070128996963f15f306d11a40a85af17 100644 (file)
@@ -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;