[tracker/miner-fs-refactor: 31/127] libtracker-miner: clear directories queue before TrackerCrawler::finished
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 31/127] libtracker-miner: clear directories queue before TrackerCrawler::finished
- Date: Mon, 5 Dec 2011 13:22:13 +0000 (UTC)
commit d8d4b0ab9a35c4402491dad73023454fdec6dd20
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Sep 27 17:49:03 2011 +0200
libtracker-miner: clear directories queue before TrackerCrawler::finished
This is so we can call tracker_crawler_start() within the ::finished
handler, instead of on an idle.
src/libtracker-miner/tracker-crawler.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index e9c3dce..c484600 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -862,13 +862,13 @@ tracker_crawler_stop (TrackerCrawler *crawler)
priv->timer = NULL;
}
- g_signal_emit (crawler, signals[FINISHED], 0,
- !priv->is_finished);
-
/* Clean up queue */
g_queue_foreach (priv->directories, (GFunc) directory_root_info_free, NULL);
g_queue_clear (priv->directories);
+ g_signal_emit (crawler, signals[FINISHED], 0,
+ !priv->is_finished);
+
/* We don't free the queue in case the crawler is reused, it
* is only freed in finalize.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]