From fd3bb8e2ec9914847992209806cd43adb765829e Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 26 Oct 2023 13:18:16 -0400 Subject: [PATCH] Silence network timeout errors when checking for updates. --- internal/updater/checker.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/updater/checker.go b/internal/updater/checker.go index 481efe9f2d..a2b2b7a17f 100644 --- a/internal/updater/checker.go +++ b/internal/updater/checker.go @@ -2,6 +2,7 @@ package updater import ( "encoding/json" + "net" "net/url" "os" "runtime" @@ -115,6 +116,10 @@ func (u *Checker) getUpdateInfo(desiredChannel, desiredVersion string) (*Availab label = anaConst.UpdateLabelFailed msg = anaConst.UpdateErrorFetch err = errs.Wrap(err, "Could not fetch update info from %s", infoURL) + if e, ok := err.(net.Error); ok && e.Timeout() { + logging.Debug("Silencing network timeout error: %v", err) + err = errs.Silence(err) + } } u.an.EventWithLabel(