1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Protect against requesting when no group is joined.

Thanks to gregfr.
This commit is contained in:
Juliusz Chroboczek 2021-04-15 12:07:05 +02:00
parent 9533c20886
commit fef38bc53f

View file

@ -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)