mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: fix pendingEOSE being deleted before all relays sends EOSE
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
7eaafe5906
commit
d3eeb37717
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user