From 5aa93e55183ba3b67355f384ac54b4dd7e047d61 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sun, 19 Oct 2014 15:08:44 +0200 Subject: [PATCH] connections: Don't give up if we've not seen an active connection yet It will appear later on. https://bugzilla.redhat.com/show_bug.cgi?id=1149200 --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 3f921a4003..65d900b9b7 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -1736,7 +1736,7 @@ device_state_cb (NMDevice *device, GParamSpec *pspec, gpointer user_data) g_print (_("Connection successfully activated (master waiting for slaves) (D-Bus active path: %s)\n"), nm_object_get_path (NM_OBJECT (active))); quit (); - } else if (ac_state != NM_ACTIVE_CONNECTION_STATE_ACTIVATING) { + } else if (active && ac_state != NM_ACTIVE_CONNECTION_STATE_ACTIVATING) { g_string_printf (nmc->return_text, _("Error: Connection activation failed.")); nmc->return_value = NMC_RESULT_ERROR_CON_ACTIVATION; quit ();