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:
Beniamino Galvani 2016-06-10 14:03:10 +02:00
parent 1fdf9e4c41
commit 6eca877ffd

View file

@ -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;
}