From 3e60bc1d4bc8745d1ddc3deca28f8328b6c2ae8e Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Tue, 10 May 2022 15:24:34 -0600 Subject: [PATCH] fix: do not error when closing statsd network connection (#11043) --- plugins/inputs/statsd/statsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/statsd/statsd.go b/plugins/inputs/statsd/statsd.go index c21cc11c5e5a7..1310d54750400 100644 --- a/plugins/inputs/statsd/statsd.go +++ b/plugins/inputs/statsd/statsd.go @@ -456,7 +456,7 @@ func (s *Statsd) udpListen(conn *net.UDPConn) error { s.Log.Errorf("Error reading: %s", err.Error()) continue } - return err + return nil } s.UDPPacketsRecv.Incr(1) s.UDPBytesRecv.Incr(int64(n))