Skip to content

Commit

Permalink
Update check on first start in case important security updates are av…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
r3-gabriel committed Oct 6, 2021
1 parent d246117 commit 303cfb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ func Start() error {
// system tasks currently have a single schedule, every x seconds
s.intervalType = "seconds"

if s.runLastUnix == 0 {
// system task schedule never ran, use now as starting point
// system task schedule never ran, use now as starting point
// update check should however run immediately (in case of important security update)
if s.runLastUnix == 0 && t.name != "updateCheck" {
s.runLastUnix = tools.GetTimeUnix()
}

Expand Down

0 comments on commit 303cfb8

Please sign in to comment.