Add a checker whether requesting connection is failed or not 37/272937/1
authorsooyeon <sooyeon.kim@samsung.com>
Mon, 28 Mar 2022 16:20:08 +0000 (01:20 +0900)
committersooyeon <sooyeon.kim@samsung.com>
Mon, 28 Mar 2022 16:20:31 +0000 (01:20 +0900)
Change-Id: I050f1be537e0267f2a0f2fb58928d5feaa1ce24b
Signed-off-by: sooyeon <sooyeon.kim@samsung.com>
client/tts_tidl.c

index 55d040e522dcd2ed356c37393a559fc48e07d0a8..279234017af43bf843ed8639254ac47ca084c741 100644 (file)
@@ -343,6 +343,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;