fix for locker.
This commit is contained in:
parent
f45f3b1380
commit
c3e45a2a53
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user