[tracker] Fixes #578159 – Tracker starts to index when removable media is inserted, regardless of user prefe
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Fixes #578159 – Tracker starts to index when removable media is inserted, regardless of user prefe
- Date: Fri, 24 Apr 2009 08:11:39 -0400 (EDT)
commit b5c277defd17a1f79aa872e735481abfcac76209
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 19a3c5b..dbd7b9a 100644
--- a/src/trackerd/tracker-processor.c
+++ b/src/trackerd/tracker-processor.c
@@ -855,7 +855,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;
@@ -1760,6 +1760,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]