diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-12 23:49:34 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-12 23:49:34 +0800 |
commit | f3b9e7312962dae85b0476d7232db8a213bef856 (patch) | |
tree | fede1550856ab4b620080dd2dc7afef33ee10329 /libempathy | |
parent | 3b36480159ea5d9a7477e8fe118a4847fe32bbd3 (diff) | |
download | gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar.gz gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar.bz2 gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar.lz gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar.xz gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.tar.zst gsoc2013-empathy-f3b9e7312962dae85b0476d7232db8a213bef856.zip |
Make sure to not init thread twice.
svn path=/trunk/; revision=1970
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-utils.c | 4 |
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 */ |