[mono/monodevelop] 6f5cefb4: [Core] Report Raygun errors from a background thread instead of the UI thread.

"Cody Russell ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141b8bfa2ee-9ebfaeae-9da9-4fa4-a526-3b83d0edc2e5-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/e188e2d50f15...6f5cefb49ec8

   Commit: 6f5cefb49ec86ceb422bf626be518c6aa291c91d
   Author: Cody Russell <[email protected]> (bratsche)
     Date: 2013-10-14 20:53:00 GMT
      URL: https://github.com/mono/monodevelop/commit/6f5cefb49ec86ceb422bf626be518c6aa291c91d

[Core] Report Raygun errors from a background thread instead of the UI thread.

Changed paths:
  M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs

Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -193,7 +193,9 @@ internal static void ReportUnhandledException (Exception ex, bool willShutDown,
 				}
 
 				if (raygunClient != null) {
-					raygunClient.Send (ex, tags);
+					ThreadPool.QueueUserWorkItem (delegate {
+						raygunClient.Send (ex, tags);
+					});
 				}
 
 				// Log to disk only if uploading fails.


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.