From e95b366ea4a32af95b2927f223de94a4ff7a651f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 29 Mar 2023 14:57:18 -0400 Subject: [PATCH] *Use just acquire not waitForUnlock --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index c323090..448244c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -173,8 +173,7 @@ export default class HyperswarmWeb extends EventEmitter { private async ensureConnection(): Promise { const logErr = (await load()).logErr; - await this._connectionMutex.waitForUnlock(); - this._connectionMutex.acquire(); + await this._connectionMutex.acquire(); if (this._activeRelay) { this._connectionMutex.release();