check: Check whether threads are already initialised before g_thread_init()
authorJan Schmidt <thaytan@noraisin.net>
Sat, 18 Apr 2009 12:54:08 +0000 (13:54 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Sat, 18 Apr 2009 13:05:16 +0000 (14:05 +0100)
tests/check/elements/souphttpsrc.c

index ba20ab9..0112369 100644 (file)
@@ -441,7 +441,8 @@ souphttpsrc_suite (void)
   TCase *tc_chain, *tc_internet;
 
   g_type_init ();
-  g_thread_init (NULL);
+  if (!g_thread_supported ())
+    g_thread_init (NULL);
 
   s = suite_create ("souphttpsrc");
   tc_chain = tcase_create ("general");