mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: fix multiple EOSE being sent when received very new event.
This commit is contained in:
parent
91efce8bbf
commit
7fa955dc25
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user