mirror of https://github.com/jetkvm/kvm.git
fix: set updating to false when checking for updates failed
This commit is contained in:
parent
3b0efa7d20
commit
c19bd0d46b
|
|
@ -148,6 +148,7 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
|
|||
|
||||
appUpdate, systemUpdate, err := s.getUpdateStatus(ctx, params)
|
||||
if err != nil {
|
||||
s.updating = false
|
||||
return s.componentUpdateError("Error checking for updates", err, &scopedLogger)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue