diff --git a/cmd/telegraf/telegraf_windows.go b/cmd/telegraf/telegraf_windows.go index 67cb34f88b5e1..8e2a6be1925d5 100644 --- a/cmd/telegraf/telegraf_windows.go +++ b/cmd/telegraf/telegraf_windows.go @@ -50,7 +50,7 @@ func (p *program) run() { func (p *program) Stop(s service.Service) error { var empty struct{} stop <- empty // signal reloadLoop to finish (context cancel) - <-stop // wait for reloadLoop to finish and channel to close + <-stop // wait for reloadLoop to finish and close channel return nil }