diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-04-18 13:54:08 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-04-18 14:05:16 +0100 |
commit | 06a4b80918eae60f34d3bae453b6f527ae4d09d3 (patch) | |
tree | c94dcd37cab49a63a87c822d9f2739a8416b840e /tests | |
parent | dfb375daa137350b7a2800c236ef822e3f2d3b2c (diff) |
check: Check whether threads are already initialised before g_thread_init()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/souphttpsrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c index ba20ab9c..01123699 100644 --- a/tests/check/elements/souphttpsrc.c +++ b/tests/check/elements/souphttpsrc.c @@ -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"); |