Fix bug in visiting services.
This commit is contained in:
parent
914072fdd8
commit
7047429ef8
@ -74,7 +74,7 @@ func (device *Device) VisitDevices(visitor func(*Device)) {
|
||||
// descendent devices.
|
||||
func (device *Device) VisitServices(visitor func(*Service)) {
|
||||
device.VisitDevices(func(d *Device) {
|
||||
for i := range device.Services {
|
||||
for i := range d.Services {
|
||||
visitor(&d.Services[i])
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user