(dst, src Candidate)
| 1130 | } |
| 1131 | |
| 1132 | func copyCandidateActivity(dst, src Candidate) { |
| 1133 | setter, ok := dst.(candidateActivitySetter) |
| 1134 | if !ok { |
| 1135 | return |
| 1136 | } |
| 1137 | |
| 1138 | if lastReceived := src.LastReceived(); !lastReceived.IsZero() && dst.LastReceived().IsZero() { |
| 1139 | setter.setLastReceived(lastReceived) |
| 1140 | } |
| 1141 | |
| 1142 | if lastSent := src.LastSent(); !lastSent.IsZero() && dst.LastSent().IsZero() { |
| 1143 | setter.setLastSent(lastSent) |
| 1144 | } |
| 1145 | } |
| 1146 | |
| 1147 | func replacePairRemote(pair *CandidatePair, remote Candidate) *CandidatePair { |
| 1148 | replacement := newCandidatePair(pair.Local, remote, pair.iceRoleControlling) |
no test coverage detected
searching dependent graphs…