From 55fe285c56055497725a619e5b9acbd6dec57e23 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 4 May 2020 16:05:47 +0200 Subject: Fix teardown after silence detector trigger --- src/AlsaInput.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/AlsaInput.h') diff --git a/src/AlsaInput.h b/src/AlsaInput.h index 8055140..f697a3c 100644 --- a/src/AlsaInput.h +++ b/src/AlsaInput.h @@ -111,13 +111,7 @@ class AlsaInputThreaded : public AlsaInput m_fault(false), m_running(false) { } - virtual ~AlsaInputThreaded() - { - if (m_running) { - m_running = false; - m_thread.join(); - } - } + virtual ~AlsaInputThreaded(); /*! Start the ALSA thread that fills the queue */ virtual void prepare(void) override; -- cgit v1.2.3