yambar/modules/mpd
Daniel Eklöf 97b279ff82 module/mpd: don't detach refresh thread
Instead, abort and join previous thread (if any), just before creating
a new one.

Abort/join the last one when destroying the module.

Note: we may end up with a dangling (non-joined) thread for a
while (for example, when state goes from playing -> paused/stopped).

It will however be joined eventually; either when state goes to
'playing' again, or when the module is destroyed.
2018-12-28 14:22:17 +01:00
..
mpd.c module/mpd: don't detach refresh thread 2018-12-28 14:22:17 +01:00
mpd.h module/mpd: monitors MPD 2018-12-27 11:36:38 +01:00