From 2e62597cd6138ad9d4972219b991a4f4c259d0f6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 6 Apr 2023 14:26:57 -0400 Subject: [PATCH] *Don't need to toggle our event hook --- src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fb6e622..a9fbadb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -467,9 +467,7 @@ async function handleSyncProtomux(aq: ActiveQuery) { }); mux._free = mux._free.filter((item: any) => item !== undefined); aq.sendUpdate(true); - socket.off("syncProtomux", sync); socket.emit("syncProtomux"); - socket.on("syncProtomux", sync); mutex.release(); });