[gnome-software/wip/temp/ubuntu-xenial-rebased: 255/326] Close the socket before trying to re-authenticate
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 255/326] Close the socket before trying to re-authenticate
- Date: Fri, 29 Apr 2016 10:08:47 +0000 (UTC)
commit 92f63cc75d1c2ba097cab7cc9b3158a1182a84a2
Author: William Hua <william hua canonical com>
Date: Sun Apr 17 16:25:36 2016 -0400
Close the socket before trying to re-authenticate
src/plugins/gs-ubuntu-snapd.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-ubuntu-snapd.c b/src/plugins/gs-ubuntu-snapd.c
index b3873ab..a426e17 100644
--- a/src/plugins/gs-ubuntu-snapd.c
+++ b/src/plugins/gs-ubuntu-snapd.c
@@ -166,6 +166,8 @@ send_snapd_request (gboolean authenticate,
*status_code = code;
if (code == 403 && retry_after_login) {
+ g_socket_close (socket, NULL);
+
macaroon = gs_ubuntuone_get_macaroon (FALSE, TRUE, NULL);
if (macaroon == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]