Skip to content

Commit

Permalink
allow update during initial delay when overridding initial delay (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett authored Oct 15, 2024
1 parent 7a3d348 commit e7d9503
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ee/tuf/autoupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ func (ta *TufAutoupdater) Execute() (err error) {
"received external interrupt during initial delay, stopping",
)
return nil
case signalRestartErr := <-ta.signalRestart:
ta.slogger.Log(context.TODO(), slog.LevelDebug,
"received interrupt to restart launcher after update during initial delay, stopping",
)
return signalRestartErr
case <-time.After(ta.knapsack.AutoupdateInitialDelay()):
break
}
Expand Down

0 comments on commit e7d9503

Please sign in to comment.