mirror of https://github.com/jetkvm/kvm.git
fix(ota): set updating to false when no updates are available (#996)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9c4a9e144f
commit
79cb2aa5ef
|
|
@ -228,6 +228,13 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
|
|||
s.triggerComponentUpdateState("system", systemUpdate)
|
||||
}
|
||||
|
||||
if !appUpdate.pending && !systemUpdate.pending {
|
||||
scopedLogger.Info().Msg("No updates available")
|
||||
s.updating = false
|
||||
s.triggerStateUpdate()
|
||||
return nil
|
||||
}
|
||||
|
||||
scopedLogger.Trace().Bool("pending", appUpdate.pending).Msg("Checking for app update")
|
||||
|
||||
if appUpdate.pending {
|
||||
|
|
|
|||
Loading…
Reference in New Issue