mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-26 04:46:26 +02:00
bouncer: fix pendingEOSE being deleted before all relays sends EOSE
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -333,7 +333,7 @@ function newConn(addr, id, reconn_t = 0) {
|
||||
|
||||
if (log_about_relays) console.log(process.pid, "---", id, `got EOSE from ${relay.url} for ${data[1]}. There are ${client.pendingEOSE.get(data[1])} EOSE received out of ${userRelays.get(id).size} connected relays.`);
|
||||
|
||||
if (wait_eose && ((client.pendingEOSE.get(data[1]) < max_eose_score) || (client.pendingEOSE.get(data[1]) < userRelays.get(id).size)) && relay.isCache) return;
|
||||
if (wait_eose && ((client.pendingEOSE.get(data[1]) < max_eose_score) || (client.pendingEOSE.get(data[1]) < userRelays.get(id).size))) return;
|
||||
client.pendingEOSE.delete(data[1]);
|
||||
|
||||
if (client.pause_subs.has(data[1])) {
|
||||
|
Reference in New Issue
Block a user