diff --git a/lib/retry.js b/lib/retry.js index 5e85e79..40fe028 100644 --- a/lib/retry.js +++ b/lib/retry.js @@ -31,11 +31,11 @@ exports.timeouts = function(options) { var timeouts = []; for (var i = 0; i < opts.retries; i++) { - timeouts.push(this.createTimeout(i, opts)); + timeouts.push(exports.createTimeout(i, opts)); } if (options && options.forever && !timeouts.length) { - timeouts.push(this.createTimeout(i, opts)); + timeouts.push(exports.createTimeout(i, opts)); } // sort the array numerically ascending