[tracker/rss-enclosures] tracker-store: Run the that must happen at the end of backup, really at the end



commit 8532052824191e7e46cbaa55560b01103f6d6b45
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Nov 4 15:17:16 2010 +0200

    tracker-store: Run the that must happen at the end of backup, really at the end

 src/tracker-store/tracker-backup.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/tracker-store/tracker-backup.c b/src/tracker-store/tracker-backup.c
index 7a7dbe6..b860dad 100644
--- a/src/tracker-store/tracker-backup.c
+++ b/src/tracker-store/tracker-backup.c
@@ -73,6 +73,12 @@ backup_callback (GError *error, gpointer user_data)
 
 	dbus_g_method_return (info->context);
 
+	tracker_store_set_active (TRUE, NULL, NULL);
+	if (info->resources) {
+		tracker_resources_enable_signals (info->resources);
+		g_object_unref (info->resources);
+	}
+
 	tracker_dbus_request_success (info->request_id,
 	                              info->context);
 }
@@ -135,12 +141,6 @@ backup_idle_set_active_false_cb (gpointer user_data)
 	                             busy_user_data);
 
 	g_object_unref (journal);
-
-	tracker_store_set_active (TRUE, NULL, NULL);
-	if (info->resources) {
-		tracker_resources_enable_signals (info->resources);
-		g_object_unref (info->resources);
-	}
 }
 
 void



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