return;
}
- if (widget_tidl_info->connection_requesting) {
+ if (widget_tidl_info->connected) {
+ SLOG(LOG_INFO, TAG_VCD, "[TIDL] widget is already connected");
return;
}
- ret = rpc_port_proxy_vcd_widget_proxy_vcd_widget_connect(widget_tidl_info->rpc_h);
+ if (widget_tidl_info->connection_requesting) {
+ return;
+ }
+ ret = rpc_port_proxy_vcd_widget_proxy_vcd_widget_connect_sync(widget_tidl_info->rpc_h);
if (0 == ret) {
- SLOG(LOG_ERROR, TAG_VCD, "[TIDL] tidl proxy info not allocated");
+ SLOG(LOG_ERROR, TAG_VCD, "[TIDL] tidl proxy info not allocated");
widget_tidl_info->connection_requesting = true;
}
type_str = "widget";
pthread_mutex_unlock(&g_widget_tidl_info_mutex);
- __request_tidl_connect(VCD_CLIENT_TYPE_WIDGET, pid);
-
SLOG(LOG_DEBUG, TAG_VCD, "@@@ VC WIDGET REGISTER CALLBACK DONE");
}
SLOG(LOG_DEBUG, TAG_VCD, "[TIDL] Send asr result");
widget_tidl_info_s* widget_tidl_info = vcd_client_widget_get_tidl_info(pid);
-
if (NULL == widget_tidl_info) {
SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to get tidl info");
return VC_ERROR_OPERATION_FAILED;
}
+ // FIXME: This is temproray fix for avoiding app launch in client side.
+ __request_tidl_connect(VCD_CLIENT_TYPE_WIDGET, pid);
+
if (!widget_tidl_info->connected) {
SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Not Connected");
return VC_ERROR_OPERATION_FAILED;