*Use just acquire not waitForUnlock

This commit is contained in:
Derrick Hammer 2023-03-29 14:57:18 -04:00
parent 276da74eb5
commit e95b366ea4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -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();