Skip to content

Commit c19bd0d

Browse files
committed
fix: set updating to false when checking for updates failed
1 parent 3b0efa7 commit c19bd0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/ota/ota.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error {
148148

149149
appUpdate, systemUpdate, err := s.getUpdateStatus(ctx, params)
150150
if err != nil {
151+
s.updating = false
151152
return s.componentUpdateError("Error checking for updates", err, &scopedLogger)
152153
}
153154

0 commit comments

Comments
 (0)