Commit 9b897d15 authored by Tristan Matthews's avatar Tristan Matthews

* #38363: alsa: fix rare deadlock

parent df8a85a0
...@@ -145,7 +145,7 @@ void AlsaThread::run() ...@@ -145,7 +145,7 @@ void AlsaThread::run()
initAudioLayer(); initAudioLayer();
alsa_->isStarted_ = true; alsa_->isStarted_ = true;
while (alsa_->isStarted_) { while (alsa_->isStarted_ and running_) {
alsa_->audioCallback(); alsa_->audioCallback();
usleep(20000); // 20 ms usleep(20000); // 20 ms
} }
......
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