From f3b9e7312962dae85b0476d7232db8a213bef856 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 12 Dec 2008 15:49:34 +0000 Subject: Make sure to not init thread twice. svn path=/trunk/; revision=1970 --- libempathy/empathy-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libempathy') 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 */ -- cgit v1.2.3