{input,mixer}/alsa: cancel the DeferredMonitor in the destructor
Yet another potential crash bug fix.
This commit is contained in:
parent
7372c931b3
commit
20ae84bff9
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user