mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Request connectivity checks on new local candidate
Match behavior of adding a remote candidate Relates to pion/webrtc#767
This commit is contained in:
@@ -752,6 +752,7 @@ func (a *Agent) taskLoop() {
|
||||
}
|
||||
} else {
|
||||
select {
|
||||
case <-a.forceCandidateContact:
|
||||
case t := <-a.taskChan:
|
||||
// Run the task
|
||||
t(a)
|
||||
@@ -895,6 +896,8 @@ func (a *Agent) addCandidate(c Candidate) {
|
||||
a.addPair(c, remoteCandidate)
|
||||
}
|
||||
}
|
||||
|
||||
a.requestConnectivityCheck()
|
||||
}
|
||||
|
||||
// GetLocalCandidates returns the local candidates
|
||||
|
||||
Reference in New Issue
Block a user