1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

(trunk gtk) #2257: When popping up the shutdown "sending totals to tracker.." prompt, we need a GDK lock

This commit is contained in:
Charles Kerr 2009-07-01 04:10:04 +00:00
parent d6ed808f9c
commit 1b65e53b7c

View file

@ -630,6 +630,7 @@ static gpointer
quitThreadFunc( gpointer gdata ) quitThreadFunc( gpointer gdata )
{ {
struct cbdata * cbdata = gdata; struct cbdata * cbdata = gdata;
gdk_threads_enter( );
tr_core_close( cbdata->core ); tr_core_close( cbdata->core );
@ -656,6 +657,8 @@ quitThreadFunc( gpointer gdata )
g_free( cbdata ); g_free( cbdata );
gtk_main_quit( ); gtk_main_quit( );
gdk_threads_leave( );
return NULL; return NULL;
} }