Protect against requesting when no group is joined.
Thanks to gregfr.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user