1
Fork 0

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
1 changed files with 4 additions and 0 deletions

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,