event/MultiSocketMonitor: add method Reset()

This commit is contained in:
Max Kellermann
2017-02-09 20:42:33 +01:00
parent 4b30ef1cf2
commit eda06993f8
3 changed files with 26 additions and 9 deletions

View File

@@ -98,12 +98,8 @@ public:
}
~AlsaInputStream() {
/* ClearSocketList must be called from within the
IOThread; if we don't do it manually here, the
~MultiSocketMonitor() will do it in the current
thread */
BlockingCall(MultiSocketMonitor::GetEventLoop(), [this](){
ClearSocketList();
MultiSocketMonitor::Reset();
});
snd_pcm_close(capture_handle);