module/mpd: don’t overload enum mpd_state

We overloaded enum mpd_state to add an “offline” state. Don’t do
this. We can detect the offline state by checking if our connection
object is NULL.

Closes #16
This commit is contained in:
Daniel Eklöf 2020-11-09 20:27:42 +01:00
parent 1262f1b3d1
commit 8a7e07af28
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 16 additions and 17 deletions

View file

@ -23,6 +23,8 @@
* Memory leak when a YAML parsing error was encountered.
* clock: update every second when necessary
(https://codeberg.org/dnkl/yambar/issues/12).
* mpd: fix compilation with clang
(https://codeberg.org/dnkl/yambar/issues/16).
### Security