[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 255/331]	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/temp/ubuntu-xenial-rebased-corrected: 255/331]	Close the socket before trying to re-authenticate
- Date: Wed,  4 May 2016 14:19:58 +0000 (UTC)
commit 722355805e33f832da3060919bcea8b0d0f2ef46
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]