use waitOnChildren again from checkSpares

This commit is contained in:
Stephen Birarda 2015-05-08 16:24:20 -07:00
parent ba2ccc1e98
commit 83cd50c7ae

View file

@ -193,14 +193,7 @@ void AssignmentClientMonitor::checkSpares() {
}
// check if any of the previous processes have now gone down
QMutableListIterator<QProcess*> i(_childProcesses);
while (i.hasNext()) {
QProcess* childProcess = i.next();
if (childProcess->state() == QProcess::NotRunning) {
i.remove();
}
}
waitOnChildren(0);
}