diff options
author | liam4 <towerofnix@gmail.com> | 2017-06-21 21:53:43 +0000 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-06-21 21:53:43 +0000 |
commit | 4074b66746ac87aa1a655dfaa914e5e02b8f8221 (patch) | |
tree | 7bb50dd4362feb9ce7ed8b3c131486114e1ffff5 /src/crawl-http.js | |
parent | af4749b962a7c5c488f52ae2b6f2ff0fe3d920a0 (diff) | |
parent | 5cbda3bc6c678a9b212fc1b47d94a3b234bbf818 (diff) |
Merge branch 'workspace'
Diffstat (limited to 'src/crawl-http.js')
-rwxr-xr-x | src/crawl-http.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crawl-http.js b/src/crawl-http.js index 7f51c87..020506b 100755 --- a/src/crawl-http.js +++ b/src/crawl-http.js @@ -97,9 +97,9 @@ function crawl(absURL, opts = {}, internals = {}) { err => { console.warn("Failed to download: " + absURL) - if (attempts < maxAttempts) { + if (internals.attempts < maxAttempts) { console.warn( - `Trying again. Attempt ${attempts + 1}/${maxAttempts}...` + `Trying again. Attempt ${internals.attempts + 1}/${maxAttempts}...` ) return crawl(absURL, opts, Object.assign({}, internals, { |