[tracker/tracker-0.10] tracker-control: Disable default dbus timeout on backup/restore



commit 77e2417eb39a28cf2aad1a942e9decb4a07286f2
Author: Martyn Russell <martyn lanedo com>
Date:   Tue May 3 17:01:00 2011 +0100

    tracker-control: Disable default dbus timeout on backup/restore
    
    It's quite likely backup or restore may take > 25 seconds which is the
    default timeout for dbus calls. This was causing errors when there was
    no real timeout issue.

 src/tracker-control/tracker-control-general.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-general.c b/src/tracker-control/tracker-control-general.c
index 62079f4..4d08602 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -623,6 +623,9 @@ tracker_control_general_run (void)
 			return EXIT_FAILURE;
 		}
 
+		/* Backup/Restore can take some time */
+		g_dbus_proxy_set_default_timeout (proxy, G_MAXINT);
+
 		v = g_dbus_proxy_call_sync (proxy,
 		                            "Save",
 		                            g_variant_new ("(s)", uri),
@@ -692,6 +695,9 @@ tracker_control_general_run (void)
 			return EXIT_FAILURE;
 		}
 
+		/* Backup/Restore can take some time */
+		g_dbus_proxy_set_default_timeout (proxy, G_MAXINT);
+
 		v = g_dbus_proxy_call_sync (proxy,
 		                            "Restore",
 		                            g_variant_new ("(s)", uri),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]