mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
connectivity: fix timeout handling for curl
g_timeout_add() expects the timeout in milliseconds, not seconds.
Reported-by: Serban Iorga <serban300@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=794464
Fixes: 7307dea9c4
This commit is contained in:
parent
b680d118ee
commit
bfe60cb7b9
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ multi_timer_cb (CURLM *multi, long timeout_ms, void *userdata)
|
|||
|
||||
nm_clear_g_source (&priv->curl_timer);
|
||||
if (timeout_ms != -1)
|
||||
priv->curl_timer = g_timeout_add (timeout_ms * 1000, curl_timeout_cb, self);
|
||||
priv->curl_timer = g_timeout_add (timeout_ms, curl_timeout_cb, self);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue