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(); });