From 0276945fd34bec3f0f39cd3acec8dcc24c6438a9 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 28 Oct 2014 11:46:23 +0100 Subject: [PATCH] cli: Activating an already activated connection fails The new ActiveConnection starts in UNKNOWN state and we immediately assume it failed. We should wait for DEACTIVATED or ACTIVATED instead. https://bugzilla.gnome.org/show_bug.cgi?id=739339 --- clients/cli/connections.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 0901d22720..1d51047ba2 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -1741,8 +1741,7 @@ active_connection_state_cb (NMActiveConnection *active, GParamSpec *pspec, gpoin nm_object_get_path (NM_OBJECT (active))); g_object_unref (active); quit (); - } else if ( state == NM_ACTIVE_CONNECTION_STATE_DEACTIVATED - || state == NM_ACTIVE_CONNECTION_STATE_UNKNOWN) { + } else if (state == NM_ACTIVE_CONNECTION_STATE_DEACTIVATED) { g_string_printf (nmc->return_text, _("Error: Connection activation failed.")); nmc->return_value = NMC_RESULT_ERROR_CON_ACTIVATION; g_object_unref (active);