mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Log don't return error on writeTo fail
Downstream isn't able to distinguish a temporary from a Permanent error yet. Relates to #252
This commit is contained in:
+2
-1
@@ -300,7 +300,8 @@ func (c *candidateBase) close() error {
|
||||
func (c *candidateBase) writeTo(raw []byte, dst Candidate) (int, error) {
|
||||
n, err := c.conn.WriteTo(raw, dst.addr())
|
||||
if err != nil {
|
||||
return n, fmt.Errorf("%w: %v", errSendPacket, err)
|
||||
c.agent().log.Warnf("%s: %v", errSendPacket, err)
|
||||
return n, nil
|
||||
}
|
||||
c.seen(true)
|
||||
return n, nil
|
||||
|
||||
Reference in New Issue
Block a user