chore(inputs.cisco_telemetry_mdt): Actually fix lint issue (#14554)

This commit is contained in:
Joshua Powers 2024-01-09 09:17:37 -07:00 committed by GitHub
parent d7aaafce79
commit db8552a140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ func (c *CiscoTelemetryMDT) acceptTCPClients() {
c.wg.Add(1)
go func() {
c.Log.Debugf("Accepted Cisco MDT TCP dialout connection from %s", conn.RemoteAddr())
if c.handleTCPClient(conn) != nil {
err := c.handleTCPClient(conn)
if err != nil {
c.acc.AddError(err)
}
c.Log.Debugf("Closed Cisco MDT TCP dialout connection from %s", conn.RemoteAddr())