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:
Thomas Haller 2020-12-04 11:21:19 +01:00
parent 399c04e810
commit 422ab25626
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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)