fix(RequestHandler): a global timeout implies limited (#3950)

This commit is contained in:
SpaceEEC
2020-03-17 09:02:51 +01:00
committed by GitHub
parent 609a545131
commit 7b38f46caf

View File

@@ -48,7 +48,7 @@ class RequestHandler {
} }
get limited() { get limited() {
return (this.manager.globalTimeout || this.remaining <= 0) && Date.now() < this.reset; return Boolean(this.manager.globalTimeout) || (this.remaining <= 0 && Date.now() < this.reset);
} }
get _inactive() { get _inactive() {