Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close running outputs when reloading #8769

Merged
merged 10 commits into from
Mar 16, 2021
Prev Previous commit
Next Next commit
closes #8726, #8185
  • Loading branch information
彭浩 committed Feb 10, 2021
commit 3a8a1e2bdf13a633f0d9cc5d820a42b9112ca928
2 changes: 1 addition & 1 deletion cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func runAgent(ctx context.Context,

runningAgent, err = agent.NewAgent(c)
viperstars marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
runningAgent = nil
runningAgent = nil // set runningAgent to nil in case of agent.NewAgent(c) fails
return err
}

Expand Down