Close turn connection

Without it the WG can not exit from the read loop
This commit is contained in:
Zoltán Papp
2024-04-18 15:59:50 +02:00
parent b5c4802bb9
commit b68a02acee
5 changed files with 19 additions and 3 deletions

View File

@@ -76,7 +76,6 @@ func (s *ICEBind) createIPv4ReceiverFn(ipv4MsgsPool *sync.Pool, pc *ipv4.PacketC
msg := &(*msgs)[0]
msg.N, msg.Addr, err = netConn.ReadFrom(msg.Buffers[0])
if err != nil {
log.Debugf("read err from turn server: %v", err)
return 0, err
}
log.Debugf("----msg address is: %s, size: %d", msg.Addr.String(), msg.N)