Skip to content

Commit

Permalink
fix: correctly waiting on ban
Browse files Browse the repository at this point in the history
  • Loading branch information
Antabuse-123 committed Oct 19, 2024
1 parent 762efc7 commit 5fed201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ module.exports = {
} catch (err) {
await pause(3000)
if (err?.code === 28) logger.error('Root-Me is slow, timeout was reached...')
else logger.error(err)
if (err?.code === 35) {
logger.error('SSL error, Root-Me banned us waiting for 5 minutes...')
await pause(1000 * 60 * 5 + 10000)
} else logger.error(err)
}
}
}
Expand Down

0 comments on commit 5fed201

Please sign in to comment.