mirror of
https://github.com/livekit/livekit.git
synced 2026-08-01 02:49:40 +00:00
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{
|
||||
Local: c.Local,
|
||||
Filtered: c.Filtered,
|
||||
Selected: c.Selected,
|
||||
})
|
||||
}
|
||||
for _, c := range d.Remote {
|
||||
clone.Remote = append(clone.Remote, &ICECandidateExtended{
|
||||
Remote: c.Remote,
|
||||
Filtered: c.Filtered,
|
||||
Selected: c.Selected,
|
||||
})
|
||||
}
|
||||
return clone
|
||||
|
||||
Reference in New Issue
Block a user