Change a few "Sucess" to "Success".
This commit is contained in:
Zizheng Tai
2019-09-07 02:46:01 -04:00
committed by Sean DuBois
parent 9ff80d256a
commit ae2f2877cb
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -42,6 +42,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu
* [Atsushi Watanabe](https://github.com/at-wat)
* [Robert Eperjesi](https://github.com/epes)
* [Sebastian Waisbrot](https://github.com/seppo0010)
* [Zizheng Tai](https://github.com/ZizhengTai)
### License
MIT License - see [LICENSE](LICENSE) for full text
+1 -1
View File
@@ -966,7 +966,7 @@ func (a *Agent) handleInbound(m *stun.Message, local Candidate, remote net.Addr)
return
}
a.selector.HandleSucessResponse(m, local, remoteCandidate, remote)
a.selector.HandleSuccessResponse(m, local, remoteCandidate, remote)
} else if m.Type.Class == stun.ClassRequest {
if err = assertInboundUsername(m, a.localUfrag+":"+a.remoteUfrag); err != nil {
a.log.Warnf("discard message from (%s), %v", remote, err)
+3 -3
View File
@@ -12,7 +12,7 @@ type pairCandidateSelector interface {
Start()
ContactCandidates()
PingCandidate(local, remote Candidate)
HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr)
HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr)
HandleBindingRequest(m *stun.Message, local, remote Candidate)
}
@@ -140,7 +140,7 @@ func (s *controllingSelector) HandleBindingRequest(m *stun.Message, local, remot
}
}
func (s *controllingSelector) HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) {
func (s *controllingSelector) HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) {
ok, pendingRequest := s.agent.handleInboundBindingSuccess(m.TransactionID)
if !ok {
s.log.Warnf("discard message from (%s), unknown TransactionID 0x%x", remote, m.TransactionID)
@@ -225,7 +225,7 @@ func (s *controlledSelector) PingCandidate(local, remote Candidate) {
s.agent.sendBindingRequest(msg, local, remote)
}
func (s *controlledSelector) HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) {
func (s *controlledSelector) HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) {
// TODO according to the standard we should specifically answer a failed nomination:
// https://tools.ietf.org/html/rfc8445#section-7.3.1.5
// If the controlled agent does not accept the request from the