From b6dda4dd5e5b66f635fad118c5b95ac4ff151577 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 29 Mar 2023 14:50:24 -0400 Subject: [PATCH] *Ensure we release the mutex before aborting if we have an active relay --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 8c18906..c323090 100644 --- a/src/index.ts +++ b/src/index.ts @@ -177,6 +177,7 @@ export default class HyperswarmWeb extends EventEmitter { this._connectionMutex.acquire(); if (this._activeRelay) { + this._connectionMutex.release(); return; }