mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Fix data race in TestWriteUseValidPair
Variable err is unexpectedly captured by goroutine.
This commit is contained in:
committed by
Sean DuBois
parent
d36b43c461
commit
66ad7f1218
@@ -549,7 +549,7 @@ func TestWriteUseValidPair(t *testing.T) {
|
||||
m := &stun.Message{
|
||||
Raw: c.UserData(),
|
||||
}
|
||||
if err = m.Decode(); err != nil {
|
||||
if decErr := m.Decode(); decErr != nil {
|
||||
return false
|
||||
} else if m.Contains(stun.AttrUseCandidate) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user