Skip to content

Commit

Permalink
Change break to return as agent should be shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 committed Jan 29, 2024
1 parent 9d88d0e commit f676598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/opampsupervisor/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ func (s *Supervisor) runAgentProcess() {

case <-s.commander.Done():
if s.shuttingDown {
break
return
}

s.logger.Debug("Agent process exited unexpectedly. Will restart in a bit...", zap.Int("pid", s.commander.Pid()), zap.Int("exit_code", s.commander.ExitCode()))
Expand Down

0 comments on commit f676598

Please sign in to comment.