X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=client%2Fvc_widget_tidl.c;h=9b6a80bd9a50c4aa2564c70a976967e85596ed5a;hb=refs%2Fheads%2Ftizen_7.0_hotfix;hp=2c7e7052ca534de3ee5da463b7da249a786145c0;hpb=7477399e2759129ed154c4cc25be199f088ec44c;p=platform%2Fcore%2Fuifw%2Fvoice-control.git diff --git a/client/vc_widget_tidl.c b/client/vc_widget_tidl.c index 2c7e705..9b6a80b 100644 --- a/client/vc_widget_tidl.c +++ b/client/vc_widget_tidl.c @@ -501,7 +501,19 @@ int vc_widget_tidl_request_finalize(int pid) } if (VC_ERROR_NONE != ret) { - SLOG(LOG_ERROR, TAG_VCW, "[TIDL ERROR] Request vc widget finalize : Fail to invoke message, error(%d)", ret); + SLOG(LOG_ERROR, TAG_VCW, "[TIDL ERROR] Request vc widget finalize : Fail to invoke finalize, error(%d)", ret); + pthread_mutex_unlock(&g_w_init_mutex); + return ret; + } + + ret = rpc_port_proxy_vc_widget_proxy_vc_widget_disconnect(g_proxy_tidl_info->rpc_h); + exception = get_last_result(); + if (RPC_PORT_ERROR_NONE != exception) { + ret = __convert_unhandled_error(exception); + } + + if (VC_ERROR_NONE != ret) { + SLOG(LOG_ERROR, TAG_VCW, "[TIDL ERROR] Request vc widget finalize : Fail to disconnect, error(%d)", ret); pthread_mutex_unlock(&g_w_init_mutex); return ret; }