diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-10 15:05:49 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-10 15:05:49 +0100 |
commit | 20ae84bff9db62f29d2b23a4b06f0c65641d0f84 (patch) | |
tree | 91284af27fd8ba8a36a63397037e027ba0eb3aa3 /src/mixer | |
parent | 7372c931b3d1cbf4237b37750aa76602fc0382e7 (diff) |
{input,mixer}/alsa: cancel the DeferredMonitor in the destructor
Yet another potential crash bug fix.
Diffstat (limited to 'src/mixer')
-rw-r--r-- | src/mixer/plugins/AlsaMixerPlugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); }); } |