Request connectivity checks on new local candidate

Match behavior of adding a remote candidate

Relates to pion/webrtc#767
This commit is contained in:
Sean DuBois
2020-01-29 22:56:01 -08:00
parent ba3c79aebc
commit 325b7f711d
+3
View File
@@ -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