Commit 6ff61322 authored by ale's avatar ale

Close the ConfigManager at end of command

Fixes issue #1.
parent ee6b71a5
Pipeline #1981 passed with stages
in 1 minute and 43 seconds
......@@ -49,6 +49,7 @@ func (c *agentCommand) Execute(ctx context.Context, f *flag.FlagSet, args ...int
log.Printf("configuration error: %v", err)
return subcommands.ExitFailure
}
defer configMgr.Close()
hupCh := make(chan os.Signal, 1)
go func() {
for range hupCh {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment