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

This commit is contained in:
Max Kellermann 2018-06-23 19:23:56 +02:00
parent 30d41e45e2
commit 09d4176210

View File

@ -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