fix for locker.

This commit is contained in:
Christopher Jeffrey 2016-04-03 03:22:04 -07:00
parent f45f3b1380
commit c3e45a2a53

View File

@ -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;
};