*release mutex

This commit is contained in:
Derrick Hammer 2023-04-06 17:02:54 -04:00
parent 1bd159c19e
commit 44a9838490
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -433,6 +433,8 @@ async function handleSyncProtomux(aq: ActiveQuery) {
return; return;
} }
debugger;
const mux = Protomux.from(socket); const mux = Protomux.from(socket);
let mutex: Mutex | null = null; let mutex: Mutex | null = null;
if (mux.mutex) { if (mux.mutex) {
@ -482,6 +484,8 @@ async function handleSyncProtomux(aq: ActiveQuery) {
} }
aq.respond(ret); aq.respond(ret);
mutex.release();
} }
function getSwarmToSocketConnectionId(socket: any) { function getSwarmToSocketConnectionId(socket: any) {