[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 100/331] Use shared SoupSession
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 100/331] Use shared SoupSession
- Date: Wed, 4 May 2016 14:06:55 +0000 (UTC)
commit d292796d89daba456175b0b9a04173e45fdd2ee6
Author: Robert Ancell <robert ancell canonical com>
Date: Sun Feb 14 18:06:34 2016 +1300
Use shared SoupSession
src/plugins/gs-plugin-ubuntu-reviews.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntu-reviews.c b/src/plugins/gs-plugin-ubuntu-reviews.c
index 9678993..7047a71 100644
--- a/src/plugins/gs-plugin-ubuntu-reviews.c
+++ b/src/plugins/gs-plugin-ubuntu-reviews.c
@@ -714,9 +714,6 @@ send_review_request (GsPlugin *plugin, const gchar *method, const gchar *path, J
g_autoptr(SoupMessage) msg = NULL;
guint status_code;
- if (!setup_networking (plugin, error))
- return FALSE;
-
uri = g_strdup_printf ("%s%s",
UBUNTU_REVIEWS_SERVER, path);
msg = soup_message_new (method, uri);
@@ -741,7 +738,7 @@ send_review_request (GsPlugin *plugin, const gchar *method, const gchar *path, J
priv->token_key,
priv->token_secret);
- status_code = soup_session_send_message (plugin->priv->session, msg);
+ status_code = soup_session_send_message (plugin->soup_session, msg);
if (status_code != SOUP_STATUS_OK) {
g_set_error (error,
GS_PLUGIN_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]