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,6 +441,7 @@ souphttpsrc_suite (void)
TCase *tc_chain, *tc_internet; TCase *tc_chain, *tc_internet;
g_type_init (); g_type_init ();
if (!g_thread_supported ())
g_thread_init (NULL); g_thread_init (NULL);
s = suite_create ("souphttpsrc"); s = suite_create ("souphttpsrc");