From 281f958554c3e3ab08f89067fe292cd2d2a94b0f Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 11 Jun 2026 12:35:39 +0200 Subject: [PATCH] Since we ARE running there should be a config If the config was cancelled midflight, connect will abort later on --- client/server/mdm.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/server/mdm.go b/client/server/mdm.go index d2d686a39..ad565e0e0 100644 --- a/client/server/mdm.go +++ b/client/server/mdm.go @@ -134,7 +134,7 @@ func (s *Server) restartEngineForMDMLocked() error { if err != nil { return fmt.Errorf("get active profile state: %w", err) } - config, existingConfig, err := s.getConfig(activeProf) + config, _, err := s.getConfig(activeProf) if err != nil { return fmt.Errorf("get active profile config: %w", err) } @@ -151,12 +151,6 @@ func (s *Server) restartEngineForMDMLocked() error { s.actCancel = nil return nil } - if !existingConfig { - log.Warn("MDM restart: config absent; not reconnecting") - state.Set(internal.StatusNeedsLogin) - s.actCancel = nil - return nil - } ctx, cancel := context.WithCancel(s.rootCtx) s.actCancel = cancel