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
This commit is contained in:
Lubomir Rintel 2014-10-19 15:08:44 +02:00 committed by Jiří Klimeš
parent 42b9e82839
commit 5aa93e5518

View file

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