diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 3336117c8..329e458cf 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -779,6 +779,14 @@ AlsaOutput::CancelInternal() noexcept pcm_export->Reset(); period_buffer.Clear(); ClearRingBuffer(); + + { + const std::lock_guard lock(mutex); + active = false; + } + + MultiSocketMonitor::Reset(); + defer_invalidate_sockets.Cancel(); } void