Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions enumerator/usb_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func getAllServices(serviceType string) ([]io_object_t, error) {
services = append(services, service)
continue
}
// If iterator is still valid return the result
if i.IsValid() {
// If the list of services is empty or the iterator is still valid return the result
if len(services) == 0 || i.IsValid() {
return services, nil
}
// Otherwise empty the result and retry
Expand Down