aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/main.c3
1 files changed, 2 insertions, 1 deletions
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