[banshee] [Banshee.Metrics] Do as little as possible on startup
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Metrics] Do as little as possible on startup
- Date: Sun, 7 Mar 2010 00:50:48 +0000 (UTC)
commit c32f37efa4648bae20bba8e624c8cc4b5d8eb488
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sat Mar 6 16:50:07 2010 -0800
[Banshee.Metrics] Do as little as possible on startup
.../Banshee.Metrics/BansheeMetrics.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs b/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
index d920134..8be6a9a 100644
--- a/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
+++ b/src/Core/Banshee.Services/Banshee.Metrics/BansheeMetrics.cs
@@ -103,9 +103,6 @@ namespace Banshee.Metrics
{
Application.ClientStarted -= Initialize;
- metrics.AddDefaults ();
- AddMetrics ();
-
var handler = Started;
if (handler != null) {
handler ();
@@ -116,6 +113,9 @@ namespace Banshee.Metrics
return false;
}
+ metrics.AddDefaults ();
+ AddMetrics ();
+
ThreadAssist.SpawnFromMain (delegate {
if (ApplicationContext.CommandLine.Contains ("debug-metrics")) {
Log.InformationFormat ("Anonymous usage data collected:\n{0}", metrics.ToJsonString ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]