From 6433b020c6d4a8e8d9f69ccb7666cb1a92a4622a Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 23 May 2011 17:20:42 +0200 Subject: libtracker-miner: Make the failed unmounts watchdog more relaxed The timeout priority is now lower so ::mount-unmount has a chance to be processed before the watchdog if the miner's main loop is busy (say removing monitors). Also, the timeout is longer so we aren't overzealous on slow unmounts. --- src/libtracker-miner/tracker-storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtracker-miner/tracker-storage.c b/src/libtracker-miner/tracker-storage.c index 319a5eb..bbf771d 100644 --- a/src/libtracker-miner/tracker-storage.c +++ b/src/libtracker-miner/tracker-storage.c @@ -834,7 +834,7 @@ mount_pre_removed_cb (GVolumeMonitor *monitor, data->storage = storage; data->mount = mount; - id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, 1, + id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT_IDLE + 10, 3, unmount_failed_cb, data, (GDestroyNotify) g_free); g_hash_table_insert (priv->unmount_watchdogs, data->mount, -- cgit v1.2.1