fixup c26fa76f: Set#has

#380
This commit is contained in:
tophf 2018-05-04 22:06:50 +03:00
parent d0115acdf2
commit 1f347df8cf

View File

@ -103,7 +103,7 @@ global API_METHODS
function reportFailure(error) { function reportFailure(error) {
// retry once if the error is 503 Service Unavailable // retry once if the error is 503 Service Unavailable
if (error === 503 && !retrying.get(id)) { if (error === 503 && !retrying.has(id)) {
retrying.add(id); retrying.add(id);
return new Promise(resolve => { return new Promise(resolve => {
setTimeout(() => { setTimeout(() => {