Commit 20ae84bf authored by Max Kellermann's avatar Max Kellermann

{input,mixer}/alsa: cancel the DeferredMonitor in the destructor

Yet another potential crash bug fix.
parent 7372c931
......@@ -100,6 +100,7 @@ public:
~AlsaInputStream() {
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
MultiSocketMonitor::Reset();
DeferredMonitor::Cancel();
});
snd_pcm_close(capture_handle);
......
......@@ -57,6 +57,7 @@ public:
~AlsaMixerMonitor() {
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
MultiSocketMonitor::Reset();
DeferredMonitor::Cancel();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment