We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08de0fe commit afee387Copy full SHA for afee387
lib/retry_operation.js
@@ -27,6 +27,8 @@ RetryOperation.prototype.retry = function(err) {
27
var timeout = this._timeouts.shift();
28
if (timeout === undefined) {
29
if (this._cachedTimeouts) {
30
+ // retry forever, only keep last error
31
+ this._errors.splice(this._errors.length - 1, this._errors.length);
32
this._timeouts = this._cachedTimeouts.slice(0);
33
timeout = this._timeouts.shift();
34
} else {
0 commit comments