event/MultiSocketMonitor: add method ClearSocketList()
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user