[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 104/331] Use shared soup session



commit a634f718a460ccdf3d0f80937657a45c64c69e47
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]