From 779cf9e3e97e7b33c6e96bce7ede67ad19953d49 Mon Sep 17 00:00:00 2001 From: riccardom Date: Thu, 11 Jun 2026 14:13:41 +0200 Subject: [PATCH] align comment to removal of DisableAutoConnect DisableAutoConnect should just avoid the connection attempts *when the service starts*. If we are started and we are up and running, DisableAutoConnect should not kick in --- client/server/mdm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/server/mdm.go b/client/server/mdm.go index 6939d35b5..bddf117db 100644 --- a/client/server/mdm.go +++ b/client/server/mdm.go @@ -58,8 +58,8 @@ func (s *Server) onMDMPolicyChange(_, _ *mdm.Policy) error { // The teardown engages a fan-out of engine goroutines (peer workers, // signal handler, route manager, ...). close(clientGiveUpChan) // happens in the function-scope defer of connectWithRetryRuns, on - // every exit path (ctx cancel, DisableAutoConnect single-shot, - // backoff exhausted, panic) — see the defer in server.go. + // every exit path (ctx cancel, backoff exhausted, panic) — see the + // defer in server.go. if s.clientGiveUpChan != nil { select { case <-s.clientGiveUpChan: