Author: alanmc
Date: 2007-03-22 19:41:57 -0500 (Thu, 22 Mar 2007)
New Revision: 74862
Modified:
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
Log:
Finally a proper fix for the GLib threads issue. No more releasing two builds!
Modified:
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
2007-03-23 00:12:55 UTC (rev 74861)
+++
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
2007-03-23 00:41:57 UTC (rev 74862)
@@ -50,7 +50,10 @@
Catalog.Init("monotorrent", basedir);
CreateDirs();
Application.Init();
- GLib.Thread.Init();
+
+ // GLib threads need to be initialised before launching the main
application
+ if (!GLib.Thread.Supported) {
+ GLib.Thread.Init();
}
private static void CreateDirs()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches