output/Control: use class ScopeUnlock()
This commit is contained in:
parent
98a7c62d7a
commit
8322ae5a4c
|
@ -111,9 +111,8 @@ void
|
|||
AudioOutputControl::WaitForCommand() noexcept
|
||||
{
|
||||
while (!IsCommandFinished()) {
|
||||
mutex.unlock();
|
||||
const ScopeUnlock unlock(mutex);
|
||||
audio_output_client_notify.Wait();
|
||||
mutex.lock();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue