# HG changeset patch # User Daniel Atallah # Date 1231301045 0 # Node ID 2307f81244079f91cfb5765da6414d297c9919ca # Parent 6a1f8309c805db02ed0c2217d1e9b33ba5024aa9 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 diff -r 6a1f8309c805 -r 2307f8124407 libpurple/dbus-server.c --- 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();