diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-05-23 17:20:42 +0200 |
---|---|---|
committer | Arnel A. Borja <arnelborja@src.gnome.org> | 2013-08-31 00:56:46 +0800 |
commit | 6433b020c6d4a8e8d9f69ccb7666cb1a92a4622a (patch) | |
tree | 853245d7a91e29d12c9aa7e68a2cb0f2ab643cae | |
parent | 37d0191f6143341518571421daa1698839291ff2 (diff) | |
download | libmediaart-6433b020c6d4a8e8d9f69ccb7666cb1a92a4622a.tar.gz |
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.
-rw-r--r-- | src/libtracker-miner/tracker-storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |