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 { inline bool connected() const {
return m_mpd && m_mpd->connected(); return m_mpd && m_mpd->connected();
} }