From c7d02e7b54e5b0529a919c8e3a4155d042b5541a Mon Sep 17 00:00:00 2001 From: Geoff Wagstaff Date: Fri, 29 Aug 2014 20:21:11 +0100 Subject: [PATCH] wrong err arg --- lib/warlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/warlock.js b/lib/warlock.js index ef31859..ce4763d 100644 --- a/lib/warlock.js +++ b/lib/warlock.js @@ -70,7 +70,7 @@ module.exports = function(redis){ e.key = key; e.ttl = ttl; e.wait = wait; - return cb(err); + return cb(e); } return setTimeout(tryLock, wait); }