[gnome-software] trivial: Move gs_profile_start to the beginning of the function
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Move gs_profile_start to the beginning of the function
- Date: Sat, 6 Jun 2015 23:16:06 +0000 (UTC)
commit 44a131cdf6a235555678b9a0f2786477e3fe8803
Author: Kalev Lember <kalevlember gmail com>
Date: Sat Jun 6 23:14:12 2015 +0200
trivial: Move gs_profile_start to the beginning of the function
src/plugins/gs-plugin-appstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 608ba42..b36de4d 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -187,6 +187,7 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
guint i;
_cleanup_hashtable_unref_ GHashTable *origins = NULL;
+ gs_profile_start (plugin->profile, "appstream::startup");
g_mutex_lock (&plugin->priv->store_mutex);
/* clear all existing applications if the store was invalidated */
@@ -199,7 +200,6 @@ gs_plugin_startup (GsPlugin *plugin, GError **error)
*tmp = '\0';
/* Parse the XML */
- gs_profile_start (plugin->profile, "appstream::startup");
if (g_getenv ("GNOME_SOFTWARE_PREFER_LOCAL") != NULL) {
as_store_set_add_flags (plugin->priv->store,
AS_STORE_ADD_FLAG_PREFER_LOCAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]