From 7fa955dc25b8b81463666b8f1568913ea77ceaa2 Mon Sep 17 00:00:00 2001 From: Yonle Date: Thu, 21 Mar 2024 22:20:16 +0700 Subject: [PATCH] bouncer: fix multiple EOSE being sent when received very new event. --- bouncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouncer.js b/bouncer.js index 3f3d7e0..ec25a9f 100644 --- a/bouncer.js +++ b/bouncer.js @@ -287,7 +287,7 @@ function newConn(addr, id, reconn_t = 0) { // If it's at the limit, Send EOSE to client and delete pendingEOSE of subID // Skip if EOSE has been omitted - if (!client.pendingEOSE.has(data[1])) return; + if (!client.pendingEOSE.has(data[1]) || client.pause_subs.has(data[1])) return; const limit = getFilterLimit(filter); if (limit === Infinity) return; if (client.events.get(data[1]).size >= limit) {