mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Fix handleInboundBindingSuccess bug
Some transactions were lost because a small bug in indexing
This commit is contained in:
committed by
Sean DuBois
parent
1c34a138ae
commit
4d10a30c45
@@ -624,7 +624,7 @@ func (a *Agent) handleInboundControlling(m *stun.Message, localCandidate, remote
|
||||
func (a *Agent) handleInboundBindingSuccess(id []byte) bool {
|
||||
for i := range a.pendingBindingRequests {
|
||||
if bytes.Equal(a.pendingBindingRequests[i], id) {
|
||||
a.pendingBindingRequests = append(a.pendingBindingRequests[:i], a.pendingBindingRequests[:i+1]...)
|
||||
a.pendingBindingRequests = append(a.pendingBindingRequests[:i], a.pendingBindingRequests[i+1:]...)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user