diff --git a/responding.go b/responding.go index 3a9c3aa..bb72cb6 100644 --- a/responding.go +++ b/responding.go @@ -41,6 +41,9 @@ func (rl *Relay) handleRequest(ctx context.Context, id string, eose *sync.WaitGr ws.WriteJSON(nostr.NoticeEnvelope(err.Error())) eose.Done() continue + } else if ch == nil { + eose.Done() + continue } go func(ch chan *nostr.Event) {