From b7d53f0d3a7fcec3e5b8ebce477750cd8ef9d166 Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Thu, 18 Jun 2020 18:26:59 +0200 Subject: [PATCH] nmcs-http: remove the timeout once expired libcurl's documentation for CURLMOPT_TIMERFUNCTION requires the application to install a non-repeating timer. https://curl.haxx.se/libcurl/c/CURLMOPT_TIMERFUNCTION.html So let's remove the GSource once expired. Fixes: 69f048bf0ca3 ('cloud-setup: add tool for automatic IP configuration in cloud') (cherry picked from commit e09bd2339a224a13067b0adcf9cb84a4f13ef003) --- clients/cloud-setup/nm-http-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cloud-setup/nm-http-client.c b/clients/cloud-setup/nm-http-client.c index 16dbd5bbe0..817f0e2eba 100644 --- a/clients/cloud-setup/nm-http-client.c +++ b/clients/cloud-setup/nm-http-client.c @@ -657,7 +657,7 @@ static gboolean _mhandle_timeout_cb (gpointer user_data) { _mhandle_action (user_data, CURL_SOCKET_TIMEOUT, 0); - return G_SOURCE_CONTINUE; + return G_SOURCE_REMOVE; } static int