add a timeout for errant audio slave threads

This commit is contained in:
Zach Pomerantz 2016-12-06 23:53:16 +00:00
parent 132e9bd644
commit 557ab43f0f

View file

@ -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;
}