From 13dee9db7bc09df36be593641cb3667584e64b60 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 4 Sep 2024 16:57:32 -0700 Subject: [PATCH] health: fix magicsockReceiveFuncWarnable health clearing Fixes #13204 Change-Id: I7154cdabc9dc362dcc3221fd5a86e21f610bbff0 Signed-off-by: Brad Fitzpatrick --- health/health.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health/health.go b/health/health.go index 1faab53f9646b..7bb9d18e9ced7 100644 --- a/health/health.go +++ b/health/health.go @@ -1064,7 +1064,7 @@ func (t *Tracker) updateBuiltinWarnablesLocked() { _ = t.lastStreamedMapResponse _ = t.lastMapRequestHeard - shouldClearMagicsockWarnings := false + shouldClearMagicsockWarnings := true for i := range t.MagicSockReceiveFuncs { f := &t.MagicSockReceiveFuncs[i] if f.missing { @@ -1072,6 +1072,7 @@ func (t *Tracker) updateBuiltinWarnablesLocked() { ArgMagicsockFunctionName: f.name, }) shouldClearMagicsockWarnings = false + break } } if shouldClearMagicsockWarnings {