]> git.0d.be Git - empathy.git/commitdiff
Make sure to not init thread twice.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 12 Dec 2008 15:49:34 +0000 (15:49 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 12 Dec 2008 15:49:34 +0000 (15:49 +0000)
svn path=/trunk/; revision=1970

libempathy/empathy-utils.c

index 26ae2ca650c84c3fe72abfff74b59b2a393a77d9..2e02fc6c438bb0842600d48a563cd60b5d813afc 100644 (file)
@@ -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 */