diff --git a/gtk/main.c b/gtk/main.c index 65fae9d3b..1e83d4a18 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -373,7 +373,9 @@ main( int argc, char ** argv ) g_set_application_name( _( "Transmission" ) ); /* initialize gtk */ - g_thread_init( NULL ); + if( !g_thread_supported() ) + g_thread_init( NULL ); + gerr = NULL; if( !gtk_init_with_args( &argc, &argv, _("[torrent files]"), entries, domain, &gerr ) ) { g_message( "%s", gerr->message );