[tracker/tracker-0.8] NB#162546 - tracker-miner-fs is emitting criticals after resuming...



commit c1bdc4e787c9f7564dda5c087cf27695008486f8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 8 12:56:10 2010 +0200

    NB#162546 - tracker-miner-fs is emitting criticals after resuming...
    
    Make sure the timer is stopped on tracker_crawler_start() if it was previously
    paused.

 src/libtracker-miner/tracker-crawler.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 753a528..7363a6c 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -790,6 +790,10 @@ tracker_crawler_start (TrackerCrawler *crawler,
 
 	priv->timer = g_timer_new ();
 
+	if (priv->is_paused) {
+		g_timer_stop (priv->timer);
+	}
+
 	/* Set as running now */
 	priv->is_running = TRUE;
 	priv->is_finished = FALSE;



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