mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 22:50:12 +01:00
secret-agent: increase timeout for GetSecrets D-Bus call
The default value of 25 seconds is too short, bump it to 120.
https://bugzilla.gnome.org/show_bug.cgi?id=767321
https://bugzilla.redhat.com/show_bug.cgi?id=1349740
(cherry picked from commit 10c5352855)
This commit is contained in:
parent
1fdf9e4c41
commit
6eca877ffd
1 changed files with 4 additions and 0 deletions
|
|
@ -362,6 +362,9 @@ nm_secret_agent_get_secrets (NMSecretAgent *self,
|
|||
r = request_new (self, "GetSecrets", path, setting_name, callback, callback_data);
|
||||
r->is_get_secrets = TRUE;
|
||||
g_hash_table_add (priv->requests, r);
|
||||
|
||||
/* Increase the timeout only for this call */
|
||||
g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (priv->proxy), 120000);
|
||||
nmdbus_secret_agent_call_get_secrets (priv->proxy,
|
||||
dict,
|
||||
path,
|
||||
|
|
@ -370,6 +373,7 @@ nm_secret_agent_get_secrets (NMSecretAgent *self,
|
|||
flags,
|
||||
r->cancellable,
|
||||
get_callback, r);
|
||||
g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (priv->proxy), -1);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue