fix: do not error when closing statsd network connection (#11043)

This commit is contained in:
Joshua Powers 2022-05-10 15:24:34 -06:00 committed by GitHub
parent e28793cff1
commit 3e60bc1d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ func (s *Statsd) udpListen(conn *net.UDPConn) error {
s.Log.Errorf("Error reading: %s", err.Error()) s.Log.Errorf("Error reading: %s", err.Error())
continue continue
} }
return err return nil
} }
s.UDPPacketsRecv.Incr(1) s.UDPPacketsRecv.Incr(1)
s.UDPBytesRecv.Incr(int64(n)) s.UDPBytesRecv.Incr(int64(n))