[libsoup] Use the custom main context in SoupProxyResolverDefault



commit 87e7ae14487fde5144d16963c4a73612acf0aca5
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Wed Mar 30 09:41:33 2011 +0200

    Use the custom main context in SoupProxyResolverDefault
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646201

 libsoup/soup-proxy-resolver-default.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-proxy-resolver-default.c b/libsoup/soup-proxy-resolver-default.c
index b0bcbac..b7554a8 100644
--- a/libsoup/soup-proxy-resolver-default.c
+++ b/libsoup/soup-proxy-resolver-default.c
@@ -174,12 +174,18 @@ get_proxy_uri_async (SoupProxyURIResolver  *resolver,
 
 	uri_string = soup_uri_to_string (uri, FALSE);
 
+	if (async_context)
+		g_main_context_push_thread_default (async_context);
+
 	g_proxy_resolver_lookup_async (priv->gproxy_resolver,
 				       uri_string,
 				       cancellable ? g_object_ref (cancellable) : NULL,
 				       resolved_proxy,
 				       async_data);
 
+	if (async_context)
+		g_main_context_pop_thread_default (async_context);
+
 	g_free (uri_string);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]