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:
parent
9533c20886
commit
fef38bc53f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue