another try catch real

This commit is contained in:
ChomeNS 2022-08-18 17:57:17 +07:00
parent 4f92ea97ee
commit 06cf553b59

View file

@ -387,9 +387,11 @@ function main() {
let timeout = 1000;
if (typeof reason.text!=='undefined') {
try {
if (reason.text.find((data) => data.text === 'Wait 5 seconds before connecting, thanks! :)')) timeout = 1000 * 6;
if (reason.text.find((data) => data.text === 'You are logging in too fast, try again later.')) timeout = 1000 * 6;
} catch (e) {
console.log(e.message);
}
try {