diff --git a/cmd/audio-netsender/main.go b/cmd/audio-netsender/main.go index 2be9aaab..945dcdbf 100644 --- a/cmd/audio-netsender/main.go +++ b/cmd/audio-netsender/main.go @@ -282,7 +282,7 @@ func (ac *audioClient) open() error { // to fix this 8000 and 16000 must be removed from this slice. rates := [8]int{8000, 16000, 32000, 44100, 48000, 88200, 96000, 192000} foundRate := false - for r := range rates { + for _, r := range rates { if r < ac.rate { continue }