diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index 5ed26ce254..3e3563ae2d 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -788,7 +788,7 @@ func runQuery( return srv.ListenAndServe() }, func(err error) { statusProber.NotReady(err) - defer httpProbe.NotHealthy(err) + httpProbe.NotHealthy(err) srv.Shutdown(err) })