Set readiness false on disconnect right away

This commit is contained in:
Viktor Liu
2026-02-04 22:28:53 +08:00
parent 7d844b9410
commit 907677f835

View File

@@ -314,6 +314,11 @@ func (s *Server) newManagementMappingWorker(ctx context.Context, client proto.Pr
s.Logger.Debug("Got mapping updates client from management server")
err = s.handleMappingStream(ctx, mappingClient, &initialSyncDone)
if s.healthChecker != nil {
s.healthChecker.SetManagementConnected(false)
}
backoffDuration := b.Duration()
switch {
case errors.Is(err, context.Canceled),