This commit is contained in:
parent
d0ace2a3cf
commit
dac6c3962a
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ class LocalMutex {
|
||||||
return () => this._release();
|
return () => this._release();
|
||||||
}
|
}
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
this._queue.push(resolve);
|
this._queue.push(() => resolve(() => this._release()));
|
||||||
}).then(() => () => this._release());
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_release() {
|
_release() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue