mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
try harder to make sure all the assignment-client children stop
This commit is contained in:
parent
5390630497
commit
4eac60b463
1 changed files with 20 additions and 1 deletions
|
@ -91,7 +91,26 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
});
|
||||
|
||||
// try to give all the children time to shutdown
|
||||
waitOnChildren(15000);
|
||||
waitOnChildren(200);
|
||||
|
||||
// ask more firmly
|
||||
QMutableListIterator<QProcess*> i(_childProcesses);
|
||||
while (i.hasNext()) {
|
||||
QProcess* childProcess = i.next();
|
||||
childProcess->kill();
|
||||
}
|
||||
|
||||
// try to give all the children time to shutdown
|
||||
waitOnChildren(200);
|
||||
|
||||
// ask even more firmly
|
||||
QMutableListIterator<QProcess*> j(_childProcesses);
|
||||
while (j.hasNext()) {
|
||||
QProcess* childProcess = j.next();
|
||||
childProcess->terminate();
|
||||
}
|
||||
|
||||
waitOnChildren(200);
|
||||
}
|
||||
|
||||
void AssignmentClientMonitor::aboutToQuit() {
|
||||
|
|
Loading…
Reference in a new issue