Fix cursor window dropping relays forever

This commit is contained in:
Jonathan Staab 2023-05-08 17:33:45 -07:00
parent c7b18d2531
commit 1716af55a5

View File

@ -166,10 +166,10 @@ class Cursor {
)
// If we got zero results for any relays, they have nothing for the given window,
// back until up to since for next time
// back until up to since for next time, but only for relays currently in the window
if (this.delta) {
this.relays.forEach(r => {
if (untilCopy[r.url] === this.until[r.url]) {
if (this.until[r.url] > this.since && untilCopy[r.url] === this.until[r.url]) {
this.until[r.url] -= this.delta
}
})