Skip to content

Commit

Permalink
Do not crash when the product cannot be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Sep 12, 2023
1 parent b96c921 commit e54b1db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions service/lib/agama/dbus/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,12 @@ def register_callbacks
end

backend.software.on_product_selected do |_product|
safe_run do
busy_while { backend.config_phase }
if service_status.busy?
logger.warn "Could not process the product change because the service is busy"
next
end

busy_while { backend.config_phase }
end
end
end
Expand Down

0 comments on commit e54b1db

Please sign in to comment.