Skip to content

Commit

Permalink
fix(agent): 🐛 make sure agent quits if registration process is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Jul 7, 2024
1 parent 4ff7801 commit e5acc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (agent *Agent) Run(ctx context.Context, trk SensorTracker, reg sensor.Regis
defer regWait.Done()

if err := agent.checkRegistration(ctx, trk); err != nil {
log.Error().Err(err).Msg("Error checking registration status.")
log.Fatal().Err(err).Msg("Error checking registration status.")
}
}()

Expand Down

0 comments on commit e5acc53

Please sign in to comment.