output/Control: use class ScopeUnlock()

This commit is contained in:
Max Kellermann 2018-01-04 08:41:15 +01:00
parent 98a7c62d7a
commit 8322ae5a4c
1 changed files with 1 additions and 2 deletions

View File

@ -111,9 +111,8 @@ void
AudioOutputControl::WaitForCommand() noexcept
{
while (!IsCommandFinished()) {
mutex.unlock();
const ScopeUnlock unlock(mutex);
audio_output_client_notify.Wait();
mutex.lock();
}
}