mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:08:06 +02:00
add a timeout for errant audio slave threads
This commit is contained in:
parent
132e9bd644
commit
557ab43f0f
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ void AudioMixerSlavePool::resize(int numThreads) {
|
|||
slave = extraBegin;
|
||||
while (slave != _slaves.end()) {
|
||||
QThread* thread = reinterpret_cast<QThread*>(slave->get());
|
||||
thread->wait();
|
||||
static const int MAX_THREAD_WAIT_TIME = 10;
|
||||
thread->wait(MAX_THREAD_WAIT_TIME);
|
||||
++slave;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue