From 09d4176210d66cf9e2d258b563a7811892c560f4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 23 Jun 2018 19:23:56 +0200 Subject: [PATCH] output/multiple: use WaitAll() in EnableDisable() --- src/output/MultipleOutputs.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index bd12f2e91..f87baa6bc 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -148,10 +148,7 @@ MultipleOutputs::EnableDisable() ao->EnableDisableAsync(); } - for (auto *ao : outputs) { - const std::lock_guard lock(ao->mutex); - ao->WaitForCommand(); - } + WaitAll(); } void