#2083 Login on auth error
This commit is contained in:
parent
d26597c395
commit
a82f7d7584
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue