mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Fixed unexpected goroutine error
TURN client's loc conn was not closed when agent.Close() was called Relates to pion/webrtc#740
This commit is contained in:
committed by
Sean DuBois
parent
f4913c135a
commit
a1667f5cb7
@@ -347,9 +347,8 @@ func (a *Agent) gatherCandidatesRelay(urls []*URL) error {
|
||||
RelAddr: laddr.IP.String(),
|
||||
RelPort: laddr.Port,
|
||||
OnClose: func() error {
|
||||
err2 := relayConn.Close()
|
||||
client.Close()
|
||||
return err2
|
||||
return locConn.Close()
|
||||
},
|
||||
}
|
||||
candidate, err := NewCandidateRelay(&relayConfig)
|
||||
|
||||
Reference in New Issue
Block a user