summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2014-09-16 13:21:32 +0200
committerOndrej Holy <oholy@redhat.com>2014-09-29 15:23:18 +0200
commit22c7d972914fb62c60e260ad0da86bcd595745c3 (patch)
tree0c1dceefadb8ed0d0a7dd4609984af52b765a3e5
parent60f96a4cdd942fcb52e470cbb1437f6eafdc3f04 (diff)
downloadgvfs-22c7d972914fb62c60e260ad0da86bcd595745c3.tar.gz
client: increase dbus proxy timeout for unmount
Default timeout is too short and error "Timeout was reached" could be shown if user don't interact with unmount dialog. The patch sets the timeout to 30 minutes as it is set on server side. https://bugzilla.gnome.org/show_bug.cgi?id=710986
-rw-r--r--client/gdaemonmount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index 60dd8bf3..97fb068d 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -250,6 +250,9 @@ async_proxy_new_cb (GObject *source_object,
mount_source = g_mount_operation_dbus_wrap (data->mount_operation, _g_daemon_vfs_get_async_bus ());
+ /* 30 minute timeout */
+ g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (proxy), 1000 * 60 * 30);
+
gvfs_dbus_mount_call_unmount (proxy,
g_mount_source_get_dbus_id (mount_source),
g_mount_source_get_obj_path (mount_source),