Retry only twice on error in Find Available PDF
Not three times
This commit is contained in:
parent
06b23cca94
commit
59cb33d231
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue