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:
parent
d420fe3a0f
commit
92900e78d6
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ namespace modules {
|
|||
}
|
||||
}
|
||||
|
||||
void teardown() {
|
||||
wakeup();
|
||||
m_mpd.reset();
|
||||
}
|
||||
|
||||
inline bool connected() const {
|
||||
return m_mpd && m_mpd->connected();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue