From 44a98384902af8a5cd79b5255421ab513b8b1a03 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 6 Apr 2023 17:02:54 -0400 Subject: [PATCH] *release mutex --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 1f39079..1c5f5a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -433,6 +433,8 @@ async function handleSyncProtomux(aq: ActiveQuery) { return; } + debugger; + const mux = Protomux.from(socket); let mutex: Mutex | null = null; if (mux.mutex) { @@ -482,6 +484,8 @@ async function handleSyncProtomux(aq: ActiveQuery) { } aq.respond(ret); + + mutex.release(); } function getSwarmToSocketConnectionId(socket: any) {