{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() {
|
~AlsaInputStream() {
|
||||||
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
|
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
|
||||||
MultiSocketMonitor::Reset();
|
MultiSocketMonitor::Reset();
|
||||||
|
DeferredMonitor::Cancel();
|
||||||
});
|
});
|
||||||
|
|
||||||
snd_pcm_close(capture_handle);
|
snd_pcm_close(capture_handle);
|
||||||
|
@ -57,6 +57,7 @@ public:
|
|||||||
~AlsaMixerMonitor() {
|
~AlsaMixerMonitor() {
|
||||||
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
|
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
|
||||||
MultiSocketMonitor::Reset();
|
MultiSocketMonitor::Reset();
|
||||||
|
DeferredMonitor::Cancel();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user