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);