Skip to content

Commit bfe60f0

Browse files
committed
add supports services check in removal
1 parent 885b398 commit bfe60f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/base.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,6 +2682,9 @@ end
26822682
function handle_component_removal!(sys::System, service::Service)
26832683
_handle_component_removal_common!(service)
26842684
for device in get_components(Device, sys)
2685+
if !supports_services(device)
2686+
continue
2687+
end
26852688
_remove_service!(device, service)
26862689
end
26872690
end

0 commit comments

Comments
 (0)