Commit fef38bc5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Protect against requesting when no group is joined.

Thanks to gregfr.
parent 9533c208
...@@ -678,6 +678,9 @@ func gotICE(c *webClient, candidate *webrtc.ICECandidateInit, id string) error { ...@@ -678,6 +678,9 @@ func gotICE(c *webClient, candidate *webrtc.ICECandidateInit, id string) error {
} }
func (c *webClient) setRequested(requested map[string]uint32) 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 c.requested = requested
pushConns(c, c.group) pushConns(c, c.group)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment