summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-02-24 19:45:56 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-02-24 19:54:37 +0100
commitd582ac2b12ae13b2cabae5722c89ca30b0cfa899 (patch)
tree2350f45f095602860ced3d85f906721e798f7547
parent1b600b118ea818d84bc9b27b7291c54ee9a798ae (diff)
downloadtracker-d582ac2b12ae13b2cabae5722c89ca30b0cfa899.tar.gz
libtracker-miner: Unset priv->current_index_root when the TrackerFileNotifier is finished
If the last files in the loop are iterated without success, the last priv->current_index_root would remain at the time of emitting the ::finished signal, which might confuse tracker_file_notifier_is_active() afterwards.
-rw-r--r--src/libtracker-miner/tracker-file-notifier.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 7de13f5de..c94763c96 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -624,6 +624,7 @@ crawl_directories_start (TrackerFileNotifier *notifier)
}
}
+ priv->current_index_root = NULL;
g_signal_emit (notifier, signals[FINISHED], 0);
return FALSE;