locker: fix nop.
This commit is contained in:
parent
63dd30393c
commit
2a43005c6b
@ -86,7 +86,7 @@ Locker.prototype.lock = function lock(arg1, arg2) {
|
||||
|
||||
if (force) {
|
||||
assert(this.busy);
|
||||
return Promise.resolve(null);
|
||||
return Promise.resolve(utils.nop);
|
||||
}
|
||||
|
||||
if (this.busy) {
|
||||
@ -220,7 +220,7 @@ MappedLock.prototype.lock = function lock(key, force) {
|
||||
|
||||
if (force || key == null) {
|
||||
assert(key == null || this.busy[key]);
|
||||
return Promise.resolve(null);
|
||||
return Promise.resolve(utils.nop);
|
||||
}
|
||||
|
||||
if (this.busy[key]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user