File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ module.exports = RetryOperation;
25
25
26
26
RetryOperation . prototype . reset = function ( ) {
27
27
this . _attempts = 1 ;
28
- this . _timeouts = this . _originalTimeouts ;
28
+ this . _timeouts = this . _originalTimeouts . slice ( 0 ) ;
29
29
}
30
30
31
31
RetryOperation . prototype . stop = function ( ) {
@@ -62,8 +62,7 @@ RetryOperation.prototype.retry = function(err) {
62
62
if ( this . _cachedTimeouts ) {
63
63
// retry forever, only keep last error
64
64
this . _errors . splice ( 0 , this . _errors . length - 1 ) ;
65
- this . _timeouts = this . _cachedTimeouts . slice ( 0 ) ;
66
- timeout = this . _timeouts . shift ( ) ;
65
+ timeout = this . _cachedTimeouts . slice ( - 1 ) ;
67
66
} else {
68
67
return false ;
69
68
}
Original file line number Diff line number Diff line change 13
13
"directories" : {
14
14
"lib" : " ./lib"
15
15
},
16
- "main" : " index" ,
16
+ "main" : " index.js " ,
17
17
"engines" : {
18
18
"node" : " >= 4"
19
19
},
You can’t perform that action at this time.
0 commit comments