[gnome-software/wip/attente/ubuntu-xenial: 5/7] Close the socket before trying to re-authenticate
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/attente/ubuntu-xenial: 5/7] Close the socket before trying to re-authenticate
- Date: Sun, 17 Apr 2016 21:15:42 +0000 (UTC)
commit f2a341e6f7a96f62887e7fe3334ce6a10c2d3d0c
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]