From 325b7f711daf74aa24c536fb9a4fba2f38ce9641 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Wed, 29 Jan 2020 22:42:46 -0800 Subject: [PATCH] Request connectivity checks on new local candidate Match behavior of adding a remote candidate Relates to pion/webrtc#767 --- agent.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent.go b/agent.go index 91e1772..075a2c4 100644 --- a/agent.go +++ b/agent.go @@ -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