*Use just acquire not waitForUnlock
This commit is contained in:
parent
276da74eb5
commit
e95b366ea4
|
@ -173,8 +173,7 @@ export default class HyperswarmWeb extends EventEmitter {
|
||||||
private async ensureConnection(): Promise<any> {
|
private async ensureConnection(): Promise<any> {
|
||||||
const logErr = (await load()).logErr;
|
const logErr = (await load()).logErr;
|
||||||
|
|
||||||
await this._connectionMutex.waitForUnlock();
|
await this._connectionMutex.acquire();
|
||||||
this._connectionMutex.acquire();
|
|
||||||
|
|
||||||
if (this._activeRelay) {
|
if (this._activeRelay) {
|
||||||
this._connectionMutex.release();
|
this._connectionMutex.release();
|
||||||
|
|
Loading…
Reference in New Issue