event/MultiSocketMonitor: add method ClearSocketList()

This commit is contained in:
Max Kellermann
2014-01-05 22:00:33 +01:00
parent 793962c5b8
commit 08f5b9f1f9
3 changed files with 17 additions and 1 deletions

View File

@@ -91,8 +91,10 @@ static constexpr Domain alsa_mixer_domain("alsa_mixer");
int
AlsaMixerMonitor::PrepareSockets()
{
if (mixer == nullptr)
if (mixer == nullptr) {
ClearSocketList();
return -1;
}
int count = snd_mixer_poll_descriptors_count(mixer);
if (count < 0)