[tracker] libtracker-miner: Unset priv->current_index_root when the TrackerFileNotifier is finished



commit d582ac2b12ae13b2cabae5722c89ca30b0cfa899
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 24 19:45:56 2014 +0100

    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.

 src/libtracker-miner/tracker-file-notifier.c |    1 +
 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 7de13f5..c94763c 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]