Skip to content

Commit

Permalink
Stop checking for updates on boot.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
knadh committed May 23, 2021
1 parent dba47bc commit 44adcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44adcd4

Please sign in to comment.