mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 12:40:11 +01:00
cli: don't wait for connection change on update failure
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: a370faeb59 ('cli: wait for changed signal after updating a connection'):
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/124
https://bugzilla.redhat.com/show_bug.cgi?id=1702203
This commit is contained in:
parent
fb9f28a323
commit
2d347e7e17
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue