[tracker/tracker-0.6] Fixes #578159 – Tracker starts to index when removable media is inserted, regardless of user prefe
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-0.6] Fixes #578159 – Tracker starts to index when removable media is inserted, regardless of user prefe
- Date: Mon, 20 Apr 2009 10:50:19 -0400 (EDT)
commit 337c3ebfc5585534bf0a2129ec8589eea56b2840
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Apr 20 16:41:25 2009 +0200
Fixes #578159 â?? Tracker starts to index when removable media is inserted, regardless of user preferences.
* src/trackerd/tracker-processor.c (tracker_processor_stop): Set state to IDLE
right before sending files over to the indexer, so it isn't left in PENDING
state if there isn't actually any files in the queues.
---
src/trackerd/tracker-processor.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/trackerd/tracker-processor.c b/src/trackerd/tracker-processor.c
index c80941c..4b4b131 100644
--- a/src/trackerd/tracker-processor.c
+++ b/src/trackerd/tracker-processor.c
@@ -857,7 +857,7 @@ process_module_files_add_removable_media (TrackerProcessor *processor)
file = g_file_new_for_path (root);
tracker_monitor_add (processor->private->monitor, module_name, file);
g_object_unref (file);
-
+
tracker_crawler_special_paths_add (crawler, root);
break;
@@ -1784,6 +1784,10 @@ tracker_processor_stop (TrackerProcessor *processor)
processor->private->finished = TRUE;
g_signal_emit (processor, signals[FINISHED], 0);
} else {
+ /* Set status to IDLE, so it isn't left to any other state
+ * if there are no files to be sent to the indexer.
+ */
+ tracker_status_set_and_signal (TRACKER_STATUS_IDLE);
item_queue_handlers_set_up (processor);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]