Commit 09d41762 authored by Max Kellermann's avatar Max Kellermann

output/multiple: use WaitAll() in EnableDisable()

parent 30d41e45
...@@ -148,10 +148,7 @@ MultipleOutputs::EnableDisable() ...@@ -148,10 +148,7 @@ MultipleOutputs::EnableDisable()
ao->EnableDisableAsync(); ao->EnableDisableAsync();
} }
for (auto *ao : outputs) { WaitAll();
const std::lock_guard<Mutex> lock(ao->mutex);
ao->WaitForCommand();
}
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment