From: wn.jang Date: Mon, 23 Mar 2020 02:21:31 +0000 (+0900) Subject: Ignore to finalize when dbus connection is NULL X-Git-Tag: submit/tizen/20200323.110548~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F228509%2F1;p=platform%2Fcore%2Fuifw%2Fvoice-control.git Ignore to finalize when dbus connection is NULL Change-Id: Ic8b2e6ac2eed8c4611fd9f5c550399e178d4bb7e (cherry picked from commit ee4d2aeee14d96235d6875768b80eb738d60f3c7) --- diff --git a/client/vc_widget_dbus.c b/client/vc_widget_dbus.c index 0ddb340..a6f2769 100644 --- a/client/vc_widget_dbus.c +++ b/client/vc_widget_dbus.c @@ -629,6 +629,18 @@ int vc_widget_dbus_request_finalize(int pid) return VC_ERROR_OPERATION_FAILED; } + if (NULL == g_w_conn_listener) { + if (g_is_connection_opened) { + SLOG(LOG_ERROR, TAG_VCW, "[ERROR] g_w_conn_listener is NULL abnormally"); + pthread_mutex_unlock(&g_w_init_mutex); + return VC_ERROR_OPERATION_FAILED; + } else { + SLOG(LOG_INFO, TAG_VCW, "[INFO] g_w_conn_listener is NULL and DBUS connection was closed"); + pthread_mutex_unlock(&g_w_init_mutex); + return VC_ERROR_NONE; + } + } + DBusError err; dbus_error_init(&err);