mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Copy id list in setRequested.
Probably not necessary, but I'm supersticious.
This commit is contained in:
parent
f8d2bb93e8
commit
6c6b0b39c9
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue