diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-04-23 22:24:36 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-04-23 22:29:49 +0200 |
commit | 47d8bffbd53d450cdf1387f68dd8dc120b79064e (patch) | |
tree | 91f5ce0e0f55763a6ed8e1227aad771c23fe313c | |
parent | 17adf58d5dc5d8253f2322e92b96bd176476b6f3 (diff) | |
download | NetworkManager-bg/rh1702203.tar.gz |
cli: don't wait for connection change on update failurebg/rh1702203
When saving a connection, we wait the connection-changed signal before
proceeding to ensure that the remote connection is up to date.
However, no signal is emitted if the update fails and so we shouldn't
wait for it.
Fixes: a370faeb59a9 ('cli: wait for changed signal after updating a connection'):
https://bugzilla.redhat.com/show_bug.cgi?id=1702203
-rw-r--r-- | clients/cli/connections.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 0abbe8358f..2c4b8d2478 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -7814,8 +7814,10 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t while (!nmc_editor_cb_called && !timeout) g_main_context_iteration (NULL, TRUE); - while (!connection_changed && !timeout) - g_main_context_iteration (NULL, TRUE); + if (!nmc_editor_error) { + while (!connection_changed && !timeout) + g_main_context_iteration (NULL, TRUE); + } if (handler_id) g_signal_handler_disconnect (rem_con, handler_id); |