diff --git a/bouncer.js b/bouncer.js index 964f4d2..c9b8da5 100644 --- a/bouncer.js +++ b/bouncer.js @@ -361,7 +361,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]) || !cFilter?.limit || !cFilter?.ids?.length || client.pause_subs.has(data[1])) return; + if (!client.pendingEOSE.has(data[1]) || !(cFilter?.limit || cFilter?.ids?.length) || client.pause_subs.has(data[1])) return; if (client.events.get(data[1]).size >= (cFilter?.ids?.length || cFilter?.limit)) { // Once reached to , send EOSE to client. client.send(JSON.stringify(["EOSE", data[1]]));