[gnome-software/wip/iainl/ubuntu-xenial: 31/56] Use shared soup session



commit eca8131870326c6d0d98df55ca856219ea5472a0
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Feb 15 15:22:19 2016 -0800

    Use shared soup session

 src/plugins/gs-plugin-snappy.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index eb90cf0..04ee1b4 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -352,14 +352,13 @@ get_apps (GsPlugin *plugin, const gchar *sources, gchar **search_terms, GList **
                                g_printerr ("Failed to get icon\n");
                }
                else {
-                       g_autoptr(SoupSession) session = NULL;
                        g_autoptr(SoupMessage) message = NULL;
                        g_autoptr(GdkPixbufLoader) loader = NULL;
 
                        g_printerr ("'%s'\n", icon_url);
                        message = soup_message_new (SOUP_METHOD_GET, icon_url);
                        if (message != NULL) {
-                               soup_session_send_message (session, message);
+                               soup_session_send_message (plugin->soup_session, message);
                                loader = gdk_pixbuf_loader_new ();
                                gdk_pixbuf_loader_write (loader, (guint8 *) message->response_body->data,  
message->response_body->length, NULL);
                                gdk_pixbuf_loader_close (loader, NULL);


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