Fix 429 string check
This commit is contained in:
parent
f07ed57210
commit
499511f79d
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ connect().then(async () => {
|
|||
const safe429MaxCount = 5;
|
||||
const safe429Counter = new DecayingCounter(safe429DecayInterval);
|
||||
client.on(Constants.Events.DEBUG, errorText => {
|
||||
if (!errorText.indexOf("429")) {
|
||||
if (!errorText.includes("429")) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.debug(`[DEBUG] ${errorText}`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue