(oldRemote, newRemote Candidate)
| 309 | } |
| 310 | |
| 311 | func (c *candidateBase) replaceRemoteCandidateCacheValues(oldRemote, newRemote Candidate) { |
| 312 | c.remoteCandidateCaches.Range(func(key, value any) bool { |
| 313 | candidate, ok := value.(Candidate) |
| 314 | if ok && candidate == oldRemote { |
| 315 | c.remoteCandidateCaches.Store(key, newRemote) |
| 316 | } |
| 317 | |
| 318 | return true |
| 319 | }) |
| 320 | } |
| 321 | |
| 322 | func (c *candidateBase) handleInboundPacket(buf []byte, srcAddr net.Addr) { |
| 323 | agent := c.agent() |