summaryrefslogtreecommitdiff
path: root/common/gmountsource.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/gmountsource.c')
-rw-r--r--common/gmountsource.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/gmountsource.c b/common/gmountsource.c
index c84665df..f20a0ba9 100644
--- a/common/gmountsource.c
+++ b/common/gmountsource.c
@@ -204,8 +204,9 @@ g_mount_source_ask_password (GMountSource *source,
data.cond = g_cond_new ();
g_mutex_lock (data.mutex);
-
- _g_dbus_connection_call_async (NULL, message, -1,
+
+ /* 30 minute timeout */
+ _g_dbus_connection_call_async (NULL, message, 1000 * 60 * 30,
ask_password_reply, &data);
dbus_message_unref (message);