fix(mpd): Wake up thread when stopping module
This commit is contained in:
parent
d420fe3a0f
commit
92900e78d6
@ -82,6 +82,11 @@ namespace modules {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void teardown() {
|
||||||
|
wakeup();
|
||||||
|
m_mpd.reset();
|
||||||
|
}
|
||||||
|
|
||||||
inline bool connected() const {
|
inline bool connected() const {
|
||||||
return m_mpd && m_mpd->connected();
|
return m_mpd && m_mpd->connected();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user