fix horrible infinite loop in Relay.QueryEvents()

This commit is contained in:
fiatjaf 2024-10-18 07:07:53 -03:00
parent 050ad2c509
commit 4cf3cdbe66

View File

@ -449,6 +449,7 @@ func (r *Relay) QueryEvents(ctx context.Context, filter Filter) (chan *Event, er
case <-r.Context().Done():
}
sub.Unsub()
return
}
}()