This commit is contained in:
1 parent
d0ace2a3cf
commit
dac6c3962a
1 file changed
+2
-2
+2
-2
@@ -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() {
|
||||||
|
|||||||
Reference in new issue
Block a user