tracker r2037 - in branches/indexer-split: . src/trackerd



Author: mr
Date: Fri Aug  8 10:26:19 2008
New Revision: 2037
URL: http://svn.gnome.org/viewvc/tracker?rev=2037&view=rev

Log:
	* src/trackerd/tracker-crawler.c: (process_func): Make sure we
	pause the crawling too when the user manually pauses.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/trackerd/tracker-crawler.c

Modified: branches/indexer-split/src/trackerd/tracker-crawler.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-crawler.c	(original)
+++ branches/indexer-split/src/trackerd/tracker-crawler.c	Fri Aug  8 10:26:19 2008
@@ -32,6 +32,7 @@
 #include "tracker-crawler.h"
 #include "tracker-dbus.h"
 #include "tracker-indexer-client.h"
+#include "tracker-main.h"
 #include "tracker-monitor.h"
 #include "tracker-marshal.h"
 
@@ -416,6 +417,11 @@
 	crawler = TRACKER_CRAWLER (data);
 	priv = crawler->private;
 
+	/* If manually paused, we hold off until unpaused */
+	if (tracker_get_is_paused_manually ()) {
+		return TRUE;
+	}
+
 	/* Crawler files */
 	file = g_queue_pop_head (priv->files);
 



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