diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2011-04-06 17:25:55 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2011-04-06 17:25:55 -0400 |
commit | 198ac3e925f4b4f4e0f9842d1ff18d1e02955582 (patch) | |
tree | 6f1c305cc6936a9cb1def7a213a5130443f07859 | |
parent | 388bb9efd752652dcd3c2588cc5451ddca1571d1 (diff) | |
download | gupnp-igd-198ac3e925f4b4f4e0f9842d1ff18d1e02955582.tar.gz |
Push context as thread default context if it isn't already
Works around gnome bug:
https://bugzilla.gnome.org/show_bug.cgi?id=646957
-rw-r--r-- | libgupnp-igd/gupnp-simple-igd-thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgupnp-igd/gupnp-simple-igd-thread.c b/libgupnp-igd/gupnp-simple-igd-thread.c index 905880d..da89b1b 100644 --- a/libgupnp-igd/gupnp-simple-igd-thread.c +++ b/libgupnp-igd/gupnp-simple-igd-thread.c @@ -262,6 +262,8 @@ thread_func (gpointer dat) struct thread_data *data = dat; GMainLoop *loop = g_main_loop_new (data->context, FALSE); + g_main_context_push_thread_default(data->context); + g_mutex_lock (data->mutex); data->loop = loop; g_mutex_unlock (data->mutex); |