*Ensure we release the mutex before aborting if we have an active relay

This commit is contained in:
Derrick Hammer 2023-03-29 14:50:24 -04:00
parent 4b6ab61da5
commit b6dda4dd5e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ export default class HyperswarmWeb extends EventEmitter {
this._connectionMutex.acquire(); this._connectionMutex.acquire();
if (this._activeRelay) { if (this._activeRelay) {
this._connectionMutex.release();
return; return;
} }