Retry only twice on error in Find Available PDF
Not three times
This commit is contained in:
parent
7f91a0c1a8
commit
3cc54eaf95
1 changed files with 2 additions and 2 deletions
|
@ -2038,7 +2038,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);
|
||||
|
@ -2077,7 +2077,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…
Add table
Reference in a new issue