aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 26ae2ca65..2e02fc6c4 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -52,7 +52,9 @@ empathy_init (void)
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 */