]> spindle.queued.net Git - midori/commitdiff
Always initialize threads, libSoup requires that
authorChristian Dywan <christian@twotoasts.de>
Tue, 18 Nov 2008 01:46:59 +0000 (02:46 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 18 Nov 2008 01:46:59 +0000 (02:46 +0100)
midori/main.c

index a1e5f214c7f82c98ff40072b0e1a18a1271b4b4f..66eb90e9fbe9272213dadce70256f0ec898c710a 100644 (file)
@@ -1093,9 +1093,9 @@ main (int    argc,
         return 1;
     }
 
-    #if HAVE_LIBSOUP
+    /* libSoup uses threads, therefore if WebKit is built with libSoup
+       or Midori is using it, we need to initialize threads. */
     if (!g_thread_supported ()) g_thread_init (NULL);
-    #endif
     stock_items_init ();
     g_set_application_name (_("Midori"));