[tracker/gdbus-porting-rebased] tracker-control: on -rs, ensure the 1s wait between stop and start



commit 5427c146c73965c8eff51602f18629762a4be691
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Wed Jan 12 16:25:52 2011 +0100

    tracker-control: on -rs, ensure the 1s wait between stop and start

 src/tracker-control/tracker-control.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-control/tracker-control.c b/src/tracker-control/tracker-control.c
index c3714bc..24b574a 100644
--- a/src/tracker-control/tracker-control.c
+++ b/src/tracker-control/tracker-control.c
@@ -511,9 +511,6 @@ main (int argc, char **argv)
 		TrackerMinerManager *manager;
 		GSList *miners, *l;
 
-		manager = tracker_miner_manager_new ();
-		miners = tracker_miner_manager_get_available (manager);
-
 		if (hard_reset || soft_reset) {
 			g_print ("%s\n", _("Waiting one second before starting minersâ?¦"));
 
@@ -523,6 +520,9 @@ main (int argc, char **argv)
 
 		g_print ("%s\n", _("Starting minersâ?¦"));
 
+		manager = tracker_miner_manager_new ();
+		miners = tracker_miner_manager_get_available (manager);
+
 		/* Get the status of all miners, this will start all
 		 * miners not already running.
 		 */



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