Commit 6c6b0b39 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Copy id list in setRequested.

Probably not necessary, but I'm supersticious.
parent f8d2bb93
...@@ -534,7 +534,11 @@ func gotICE(c *webClient, candidate *webrtc.ICECandidateInit, id string) error { ...@@ -534,7 +534,11 @@ 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.down != nil { if c.down != nil {
down := make([]string, 0, len(c.down))
for id := range c.down { for id := range c.down {
down = append(down, id)
}
for _, id := range down {
c.write(clientMessage{ c.write(clientMessage{
Type: "close", Type: "close",
Id: id, Id: id,
......
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