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
This commit is contained in:
riccardom
2026-06-11 14:13:41 +02:00
parent d8ba5e6f6b
commit 779cf9e3e9

View File

@@ -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: