*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> {
|
||||
const logErr = (await load()).logErr;
|
||||
|
||||
await this._connectionMutex.waitForUnlock();
|
||||
this._connectionMutex.acquire();
|
||||
await this._connectionMutex.acquire();
|
||||
|
||||
if (this._activeRelay) {
|
||||
this._connectionMutex.release();
|
||||
|
|
Loading…
Reference in New Issue