Skip to content

Commit

Permalink
Merge pull request #8 from Antabuse-123/main
Browse files Browse the repository at this point in the history
fix: correctly waiting on ban
  • Loading branch information
kernoeb authored Oct 19, 2024
2 parents e68aef8 + 5fed201 commit dddfd78
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 dddfd78

Please sign in to comment.