|
|
@ -25,7 +25,7 @@ function Lock(opts) { |
|
|
|
Lock.prototype.runLocked = function(token, cb, task) { |
|
|
|
$.shouldBeDefined(token); |
|
|
|
|
|
|
|
this.lock.locked(token, 2 * 1000, 10 * 60 * 1000, function(err, release) { |
|
|
|
this.lock.locked(token, 5 * 1000, 24 * 60 * 60 * 1000, function(err, release) { |
|
|
|
if (err) return cb(new Error('Wallet is locked')); |
|
|
|
var _cb = function() { |
|
|
|
cb.apply(null, arguments); |
|
|
|