check: Check whether threads are already initialised before g_thread_init()

This commit is contained in:
Jan Schmidt 2009-04-18 13:54:08 +01:00
parent dfb375daa1
commit 06a4b80918

View 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");