Fix prometheus label names, and dont panic if invalid

fixes #907
This commit is contained in:
Cameron Sparr
2016-03-22 10:34:33 -06:00
committed by Michele Fadda
parent ec2d410d23
commit 87bdff4321
3 changed files with 37 additions and 12 deletions

View File

@@ -90,8 +90,6 @@ func (u *UdpListener) Start(acc telegraf.Accumulator) error {
}
func (u *UdpListener) Stop() {
u.Lock()
defer u.Unlock()
close(u.done)
u.listener.Close()
u.wg.Wait()