danbee / persephone

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

Move the handle idle command into the command queue #90

Closed danbee closed 2 years ago

danbee commented 2 years ago

My theory is that it's ok to send the noidle synchronously but the subsequent handling of the idle response should be on the command queue. My hope is that this fixes issues with less than perfect network connections (and also very occasionally seen on good networks).

This also simplifies the code somewhat and removes the need for the lock.