Skip to content

Commit

Permalink
fix #261
Browse files Browse the repository at this point in the history
  • Loading branch information
mike442144 committed Apr 19, 2019
1 parent 34bcfb4 commit 9b77f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,9 @@ Crawler.prototype._onContent = function _onContent (error, options, response) {
log('error','Error '+error+' when fetching '+ (options.uri||options.url)+(options.retries ? ' ('+options.retries+' retries left)' : ''));

if (options.retries) {
self.options.skipDuplicates = false;
setTimeout(function() {
options.retries--;
self.queue(options);
self._schedule(options);
options.release();
},options.retryTimeout);
} else{
Expand Down

0 comments on commit 9b77f9a

Please sign in to comment.