[tracker/tracker-0.16] tracker-miner-manager: don't run main_loop if fail to find datadir



commit 4737602ebc80f26d7578b2a5d656b00fad6f66d7
Author: Tim Lunn <tim feathertop org>
Date:   Fri Apr 11 17:51:31 2014 +1000

    tracker-miner-manager: don't run main_loop if fail to find datadir
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729449

 src/libtracker-miner/tracker-miner-manager.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-manager.c b/src/libtracker-miner/tracker-miner-manager.c
index cdd472e..73d0131 100644
--- a/src/libtracker-miner/tracker-miner-manager.c
+++ b/src/libtracker-miner/tracker-miner-manager.c
@@ -780,10 +780,11 @@ initialize_miners_data (TrackerMinerManager *manager)
        }
 
        file = g_file_new_for_path (miners_dir);
-       tracker_crawler_start (crawler, file, TRUE);
-       g_object_unref (file);
+       if (tracker_crawler_start (crawler, file, TRUE)){
+               g_main_loop_run (main_loop);
+       }
 
-       g_main_loop_run (main_loop);
+       g_object_unref (file);
 
        g_main_loop_unref (main_loop);
        g_object_unref (crawler);


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