danbee / persephone

macOS MPD client written in Swift.
https://persephone.fm
MIT License
215 stars 18 forks source link

Reset the queuePos to -1 on queue change #12

Closed danbee closed 5 years ago

danbee commented 5 years ago

This avoids the index ever being out of range which is what was causing the crash. The queuePos gets updated straight after the queue anyway.