diff libpurple/dbus-server.c @ 25265:2307f8124407

Only initialize dbus threading if glib threading is initialized. The idea is that anything that will encounter the side effect of other libraries using dbus from gthreads will have had to already initialize glib threading earlier. Fixes #7538
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 07 Jan 2009 04:04:05 +0000
parents 61f3a9f7a220
children 3a0552df3379
line wrap: on
line diff
--- a/libpurple/dbus-server.c	Wed Jan 07 02:12:17 2009 +0000
+++ b/libpurple/dbus-server.c	Wed Jan 07 04:04:05 2009 +0000
@@ -803,7 +803,8 @@
 void
 purple_dbus_init(void)
 {
-	dbus_g_thread_init();
+	if (g_thread_supported())
+		dbus_g_thread_init();
 
 	purple_dbus_init_ids();