From 92900e78d61785612edea687a1a1f39ab98a3d83 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 28 Oct 2016 19:52:20 +0200 Subject: [PATCH] fix(mpd): Wake up thread when stopping module --- include/modules/mpd.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/modules/mpd.hpp b/include/modules/mpd.hpp index 1698d2d4..be596c02 100644 --- a/include/modules/mpd.hpp +++ b/include/modules/mpd.hpp @@ -82,6 +82,11 @@ namespace modules { } } + void teardown() { + wakeup(); + m_mpd.reset(); + } + inline bool connected() const { return m_mpd && m_mpd->connected(); }