mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 06:50:35 +01:00
Revert "cli: Finish waiting for device activation when they disconnect"
In case there's already a connection on the device, it traverses to
DISCONNECTED. We shouldn't cease waiting then.
This reverts commit 94a57d5e07.
This commit is contained in:
parent
3d9d30df58
commit
529092f035
1 changed files with 1 additions and 2 deletions
|
|
@ -1366,8 +1366,7 @@ monitor_device_state_cb (NMDevice *device, GParamSpec *pspec, gpointer user_data
|
|||
g_print (_("Connection with UUID '%s' created and activated on device '%s'\n"),
|
||||
nm_active_connection_get_uuid (active), nm_device_get_iface (device));
|
||||
quit ();
|
||||
} else if ( state <= NM_DEVICE_STATE_DISCONNECTED
|
||||
|| state >= NM_DEVICE_STATE_DEACTIVATING) {
|
||||
} else if (state == NM_DEVICE_STATE_FAILED) {
|
||||
reason = nm_device_get_state_reason (device);
|
||||
g_string_printf (nmc->return_text, _("Error: Connection activation failed: (%d) %s."),
|
||||
reason, nmc_device_reason_to_string (reason));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue