From 64c6057c08ec7744197cce1cd571255568dad7be Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 11 Sep 2024 21:05:34 -0300 Subject: [PATCH] return from subMany() on context done in one place where we weren't. --- pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.go b/pool.go index 93d6bc0..846d176 100644 --- a/pool.go +++ b/pool.go @@ -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 {