[gnome-software/wip/temp/ubuntu-xenial-rebased: 274/329] Also re-authenticate on 500
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 274/329] Also re-authenticate on 500
- Date: Fri, 29 Apr 2016 14:08:23 +0000 (UTC)
commit 0121911fd502c734129f23f77bd7e1f555be220d
Author: William Hua <william hua canonical com>
Date: Mon Apr 18 12:47:45 2016 -0400
Also re-authenticate on 500
src/plugins/gs-ubuntu-snapd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-ubuntu-snapd.c b/src/plugins/gs-ubuntu-snapd.c
index 29e2967..f7b1088 100644
--- a/src/plugins/gs-ubuntu-snapd.c
+++ b/src/plugins/gs-ubuntu-snapd.c
@@ -169,7 +169,7 @@ send_snapd_request (const gchar *method,
if (status_code != NULL)
*status_code = code;
- if (code == 403 && retry_after_login) {
+ if ((code == 403 || code == 500) && retry_after_login) {
g_socket_close (socket, NULL);
gs_ubuntuone_clear_macaroon ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]