diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 6805293367..632b4460ca 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -2032,7 +2032,7 @@ Zotero.Attachments = new function(){ addTriedURL(url); // Backoff loop let tries = 3; - while (tries-- >= 0) { + while (tries-- > 0) { try { await beforeRequest(url); await this.downloadFile(url, path, options); @@ -2071,7 +2071,7 @@ Zotero.Attachments = new function(){ // Backoff loop let tries = 3; - while (tries-- >= 0) { + while (tries-- > 0) { try { await beforeRequest(nextURL, noDelay); req = await Zotero.HTTP.request(