diff --git a/lib/bcoin/locker.js b/lib/bcoin/locker.js index 76174d96..3f90875f 100644 --- a/lib/bcoin/locker.js +++ b/lib/bcoin/locker.js @@ -92,7 +92,8 @@ Locker.prototype.lock = function lock(func, args, force) { }; Locker.prototype.destroy = function destroy() { - this.purgePending(); + if (this.add) + this.purgePending(); this.jobs.length = 0; };