1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Copy id list in setRequested.

Probably not necessary, but I'm supersticious.
This commit is contained in:
Juliusz Chroboczek 2020-10-27 18:21:25 +01:00
parent f8d2bb93e8
commit 6c6b0b39c9

View file

@ -534,7 +534,11 @@ func gotICE(c *webClient, candidate *webrtc.ICECandidateInit, id string) error {
func (c *webClient) setRequested(requested map[string]uint32) error {
if c.down != nil {
down := make([]string, 0, len(c.down))
for id := range c.down {
down = append(down, id)
}
for _, id := range down {
c.write(clientMessage{
Type: "close",
Id: id,