mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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:
parent
d6ed808f9c
commit
1b65e53b7c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue