Fix bug in visiting services.

This commit is contained in:
John Beisley 2013-10-06 16:53:53 +01:00
parent 914072fdd8
commit 7047429ef8

View File

@ -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])
}
})