Skip to content

Commit

Permalink
Log don't return error on writeTo fail
Browse files Browse the repository at this point in the history
Downstream isn't able to distinguish a temporary from a Permanent
error yet.

Relates to #252
  • Loading branch information
Sean-Der committed Nov 13, 2020
1 parent 74d766b commit 1a4dd63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion candidate_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a4dd63

Please sign in to comment.