summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/plugins/AlsaInputPlugin.cxx1
-rw-r--r--src/mixer/plugins/AlsaMixerPlugin.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx
index 40967dd40..4cbf1644c 100644
--- a/src/input/plugins/AlsaInputPlugin.cxx
+++ b/src/input/plugins/AlsaInputPlugin.cxx
@@ -100,6 +100,7 @@ public:
~AlsaInputStream() {
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
MultiSocketMonitor::Reset();
+ DeferredMonitor::Cancel();
});
snd_pcm_close(capture_handle);
diff --git a/src/mixer/plugins/AlsaMixerPlugin.cxx b/src/mixer/plugins/AlsaMixerPlugin.cxx
index 852326926..85ccdf8dd 100644
--- a/src/mixer/plugins/AlsaMixerPlugin.cxx
+++ b/src/mixer/plugins/AlsaMixerPlugin.cxx
@@ -57,6 +57,7 @@ public:
~AlsaMixerMonitor() {
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
MultiSocketMonitor::Reset();
+ DeferredMonitor::Cancel();
});
}