#2083 Login on auth error

This commit is contained in:
Joan Sanchez 2020-02-07 11:50:09 +01:00
parent d26597c395
commit a82f7d7584
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);
} }