From 362260797fe0c457ffba8d1c7bb92be469d0460f Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 27 Oct 2009 10:53:48 +0100 Subject: Bug #599740 - Crashing in g_thread_init --- shell/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/main.c b/shell/main.c index 9b03c7c4cc..f5c757af0b 100644 --- a/shell/main.c +++ b/shell/main.c @@ -521,7 +521,8 @@ main (gint argc, gchar **argv) } g_type_init (); - g_thread_init (NULL); + if (!g_thread_get_initialized ()) + g_thread_init (NULL); dbus_g_thread_init (); #ifdef G_OS_WIN32 -- cgit