fix a dangling pending in pool.subMany()

This commit is contained in:
fiatjaf
2025-09-08 11:22:35 -03:00
parent b67e3092b0
commit c5d4b52a6f

View File

@@ -417,6 +417,7 @@ func (pool *Pool) subMany(
if idx := slices.Index(urls, url); idx != i {
// skip duplicate relays in the list
eoseWg.Done()
pending.Dec()
continue
}