From 30d41e45e25238f3166afa55fc721dbb3cd74858 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 23 Jun 2018 19:23:18 +0200 Subject: [PATCH] output/multiple: remove unnecessary IsBusy() check from WaitAll() AudioOutputControl::WaitForCommand() doesn't need this check. --- src/output/MultipleOutputs.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index 5e8a2acea..bd12f2e91 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -159,8 +159,7 @@ MultipleOutputs::WaitAll() noexcept { for (auto *ao : outputs) { const std::lock_guard protect(ao->mutex); - if (ao->IsBusy()) - ao->WaitForCommand(); + ao->WaitForCommand(); } }