Fix Selected attribute not being copied (#2289)
This commit is contained in:
@@ -84,12 +84,14 @@ func (d *ICEConnectionDetails) Clone() *ICEConnectionDetails {
|
|||||||
clone.Local = append(clone.Local, &ICECandidateExtended{
|
clone.Local = append(clone.Local, &ICECandidateExtended{
|
||||||
Local: c.Local,
|
Local: c.Local,
|
||||||
Filtered: c.Filtered,
|
Filtered: c.Filtered,
|
||||||
|
Selected: c.Selected,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
for _, c := range d.Remote {
|
for _, c := range d.Remote {
|
||||||
clone.Remote = append(clone.Remote, &ICECandidateExtended{
|
clone.Remote = append(clone.Remote, &ICECandidateExtended{
|
||||||
Remote: c.Remote,
|
Remote: c.Remote,
|
||||||
Filtered: c.Filtered,
|
Filtered: c.Filtered,
|
||||||
|
Selected: c.Selected,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return clone
|
return clone
|
||||||
|
|||||||
Reference in New Issue
Block a user