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
set "runningAgent" to nil if call "NewAgent" fails
  • Loading branch information
彭浩 committed Feb 9, 2021
commit f06b0034da561a931ef9da4a960e359edd0ccddc
1 change: 1 addition & 0 deletions cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +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
return err
}

Expand Down