diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index 54b9086..a1a51dd 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -678,6 +678,9 @@ func gotICE(c *webClient, candidate *webrtc.ICECandidateInit, id string) error { } func (c *webClient) setRequested(requested map[string]uint32) error { + if c.group == nil { + return errors.New("attempted to request with no group joined") + } c.requested = requested pushConns(c, c.group)