Fix mic thread usage

This commit is contained in:
RipleyTom 2023-03-29 22:11:13 +02:00 committed by Megamouse
parent 82dedb1fbb
commit 0c051a83a7

View file

@ -96,7 +96,7 @@ void mic_context::operator()()
{
std::lock_guard lock(mutex);
if (mic_list.empty())
if (std::none_of(mic_list.begin(), mic_list.end(), [](const microphone_device& dev) { return dev.is_registered(); }))
{
return false;
}