mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-06 14:00:39 +01:00
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:69f048bf0c('cloud-setup: add tool for automatic IP configuration in cloud') (cherry picked from commite09bd2339a) (cherry picked from commitb7d53f0d3a) (cherry picked from commit92bded74c4)
This commit is contained in:
parent
e9f865b365
commit
8181674bab
1 changed files with 1 additions and 1 deletions
|
|
@ -654,7 +654,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue