From e5acc533aeda670bdd2416a8145d6e22d43d2365 Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Sun, 7 Jul 2024 10:56:31 +1000 Subject: [PATCH] fix(agent): :bug: make sure agent quits if registration process is cancelled --- internal/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/agent.go b/internal/agent/agent.go index 6154f9b5f..af8badd1f 100644 --- a/internal/agent/agent.go +++ b/internal/agent/agent.go @@ -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.") } }()