Skip to content

Commit

Permalink
return from subMany() on context done in one place where we weren't.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 12, 2024
1 parent 1b7f191 commit 64c6057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func (pool *SimplePool) subMany(ctx context.Context, urls []string, filters Filt
select {
case events <- ie:
case <-ctx.Done():
return
}
case <-ticker.C:
if eose {
Expand Down

0 comments on commit 64c6057

Please sign in to comment.