mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 15:20:19 +01:00
cloud-setup: in EC2's _get_config_task_maybe_return() cancel internal requests on any error
"iface_data->cancellable" is an internal cancellable for the parallel HTTP requests. Once we encounter a failure, those requests are all obsolete and must be cancelled.
This commit is contained in:
parent
399c04e810
commit
422ab25626
1 changed files with 2 additions and 0 deletions
|
|
@ -151,6 +151,8 @@ _get_config_task_maybe_return(GetConfigIfaceData *iface_data, GError *error_take
|
|||
iface_data->error = error_take;
|
||||
} else
|
||||
g_error_free(error_take);
|
||||
|
||||
nm_clear_g_cancellable(&iface_data->cancellable);
|
||||
}
|
||||
|
||||
if (iface_data->n_pending > 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue