github wh: return from eventHandler when err != nil

closes #837
This commit is contained in:
Cameron Sparr
2016-03-14 10:29:43 +00:00
parent 8c6c144f28
commit d3925890b1
2 changed files with 4 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ func (i *InfluxDB) Write(metrics []telegraf.Metric) error {
// If all of the writes failed, create a new connection array so that
// i.Connect() will be called on the next gather.
if err != nil {
i.conns = make([]client.Client)
i.conns = make([]client.Client, 0)
}
return err
}