If New creates, Starts MUST find a connectClient

This commit is contained in:
riccardom
2026-06-17 23:00:53 +02:00
parent 0085aebf77
commit e0cff5e240
2 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ func (s *Server) restartEngineForMDMLocked() error {
log.Info("MDM restart: starting a fresh run with re-resolved config")
// MDM restart has no incoming RPC metadata; fire and forget (the supervisor
// reconnects internally and we don't block on the run).
s.ensureConnectClient().RunAsync(config, nil, s.clientRunningChan, s.clientDoneChan)
s.connectClient.RunAsync(config, nil, s.clientRunningChan, s.clientDoneChan)
s.publishConfigChangedEvent("mdm")
return nil
}