1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -05:00

fix(mpd): Wake up thread when stopping module

This commit is contained in:
Michael Carlberg 2016-10-28 19:52:20 +02:00
parent d420fe3a0f
commit 92900e78d6

View file

@ -82,6 +82,11 @@ namespace modules {
}
}
void teardown() {
wakeup();
m_mpd.reset();
}
inline bool connected() const {
return m_mpd && m_mpd->connected();
}