[tracker/no-mtime-checks-on-start: 4/11] libtracker-miner: Don't stay in "Initializing" if crawling is disabled
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/no-mtime-checks-on-start: 4/11] libtracker-miner: Don't stay in "Initializing" if crawling is disabled
- Date: Thu, 3 Feb 2011 14:18:24 +0000 (UTC)
commit edea827732ca8fa5a6e1e4b6d3581cd0d76fb2ca
Author: Martyn Russell <martyn lanedo com>
Date: Tue Feb 1 18:30:12 2011 +0000
libtracker-miner: Don't stay in "Initializing" if crawling is disabled
src/libtracker-miner/tracker-miner-fs.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 8a6b604..6d35660 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1032,7 +1032,7 @@ process_stop (TrackerMinerFS *fs)
NULL);
g_signal_emit (fs, signals[FINISHED], 0,
- g_timer_elapsed (fs->private->timer, NULL),
+ fs->private->timer ? g_timer_elapsed (fs->private->timer, NULL) : 0.0,
fs->private->total_directories_found,
fs->private->total_directories_ignored,
fs->private->total_files_found,
@@ -3781,6 +3781,7 @@ crawl_directories_start (TrackerMinerFS *fs)
if (!fs->private->initial_crawling) {
/* Do not perform initial crawling */
g_message ("Crawling is disabled, waiting for DBus events");
+ process_stop (fs);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]