Skip to content

Commit

Permalink
selection: remove unneeded useCandidate attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed May 20, 2019
1 parent 8d90138 commit 93b8171
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ func (s *controllingSelector) HandleSucessResponse(m *stun.Message, local, remot
func (s *controllingSelector) PingCandidate(local, remote *Candidate) {
msg, err := stun.Build(stun.BindingRequest, stun.TransactionID,
stun.NewUsername(s.agent.remoteUfrag+":"+s.agent.localUfrag),
UseCandidate,
AttrControlling(s.agent.tieBreaker),
PriorityAttr(local.Priority()),
stun.NewShortTermIntegrity(s.agent.remotePwd),
Expand Down Expand Up @@ -136,7 +135,6 @@ func (s *controlledSelector) ContactCandidates() {
func (s *controlledSelector) PingCandidate(local, remote *Candidate) {
msg, err := stun.Build(stun.BindingRequest, stun.TransactionID,
stun.NewUsername(s.agent.remoteUfrag+":"+s.agent.localUfrag),
UseCandidate,
AttrControlled(s.agent.tieBreaker),
PriorityAttr(local.Priority()),
stun.NewShortTermIntegrity(s.agent.remotePwd),
Expand Down

0 comments on commit 93b8171

Please sign in to comment.