Commit 8322ae5a authored by Max Kellermann's avatar Max Kellermann

output/Control: use class ScopeUnlock()

parent 98a7c62d
......@@ -111,9 +111,8 @@ void
AudioOutputControl::WaitForCommand() noexcept
{
while (!IsCommandFinished()) {
mutex.unlock();
const ScopeUnlock unlock(mutex);
audio_output_client_notify.Wait();
mutex.lock();
}
}
......
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