Skip to content

Commit de469e4

Browse files
committed
add missing check to services support
1 parent 81637b9 commit de469e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/models/devices.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ end
7676
Return true if a service with type T is attached to the device.
7777
"""
7878
function has_service(device::Device, ::Type{T}) where {T <: Service}
79+
if !supports_services(device)
80+
return false
81+
end
7982
for _service in get_services(device)
8083
if isa(_service, T)
8184
return true

0 commit comments

Comments
 (0)