empathy r1970 - trunk/libempathy



Author: xclaesse
Date: Fri Dec 12 15:49:34 2008
New Revision: 1970
URL: http://svn.gnome.org/viewvc/empathy?rev=1970&view=rev

Log:
Make sure to not init thread twice.

Modified:
   trunk/libempathy/empathy-utils.c

Modified: trunk/libempathy/empathy-utils.c
==============================================================================
--- trunk/libempathy/empathy-utils.c	(original)
+++ trunk/libempathy/empathy-utils.c	Fri Dec 12 15:49:34 2008
@@ -52,7 +52,9 @@
 		return;
 
 	/* Setup glib. Threads are required for async GIO. */
-	g_thread_init (NULL);
+	if (!g_thread_supported ()) {
+		g_thread_init (NULL);
+	}
 	g_type_init ();
 
 	/* Setup gettext */



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