#2083 Login on auth error
gitea/salix/2083-chatbot_login_on_auth_error Something is wrong with the build of this commit Details

This commit is contained in:
Joan Sanchez 2020-02-07 11:50:09 +01:00
parent 9d02b2fcaf
commit 5be55ca92d
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ module.exports = Self => {
}).catch(async error => { }).catch(async error => {
if (error.statusCode === 401 && !this.resendAttempted) { if (error.statusCode === 401 && !this.resendAttempted) {
this.resendAttempted = true; this.resendAttempted = true;
this.auth = null;
return sendMessage(sender, channel, message); return sendMessage(sender, channel, message);
} }