This commit is contained in:
Christopher Jeffrey 2016-03-04 05:04:13 -08:00
parent 57f37bba3c
commit 88bf5f4b9a

View File

@ -31,8 +31,6 @@ function TXPool(prefix, db, options) {
this.options = options;
this.busy = false;
this.jobs = [];
this.setMaxListeners(Number.MAX_SAFE_INTEGER);
}
utils.inherits(TXPool, EventEmitter);
@ -57,7 +55,7 @@ TXPool.prototype._lock = function _lock(func, args, force) {
this.busy = true;
return function unlock() {
var item, block;
var item;
assert(!called);
called = true;