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