From 44adcd44de11e2b2338d13740f5b76ce919ee256 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 23 May 2021 21:08:32 +0530 Subject: [PATCH] Stop checking for updates on boot. This commit disables the automatic upe check thappens immediately on boot, giving users an opportunity disable it from the settings UI before any remote requests are initiated. Tupdate checks happen every 24 houfter boot. Ref: #326 --- cmd/updates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/updates.go b/cmd/updates.go index 73f327d0..af52b673 100644 --- a/cmd/updates.go +++ b/cmd/updates.go @@ -36,7 +36,7 @@ func checkUpdates(curVersion string, interval time.Duration, app *App) { ticker := time.NewTicker(interval) defer ticker.Stop() - for ; true; <-ticker.C { + for range ticker.C { resp, err := http.Get(updateCheckURL) if err != nil { app.log.Printf("error checking for remote update: %v", err)