Merge "Invoke error callback when __prepare_cb is failed" into tizen
authorSooyeon Kim <sooyeon.kim@samsung.com>
Thu, 16 Jun 2022 09:03:58 +0000 (09:03 +0000)
committerGerrit Code Review <gerrit@review>
Thu, 16 Jun 2022 09:03:58 +0000 (09:03 +0000)
client/tts_tidl.c

index b6afcef..5f42bff 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;