mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
no magic numbers
This commit is contained in:
parent
4eac60b463
commit
23c44500d8
1 changed files with 4 additions and 3 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
|
||||
const QString ASSIGNMENT_CLIENT_MONITOR_TARGET_NAME = "assignment-client-monitor";
|
||||
const int WAIT_FOR_CHILD_MSECS = 500;
|
||||
|
||||
AssignmentClientMonitor::AssignmentClientMonitor(const unsigned int numAssignmentClientForks,
|
||||
const unsigned int minAssignmentClientForks,
|
||||
|
@ -91,7 +92,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
});
|
||||
|
||||
// try to give all the children time to shutdown
|
||||
waitOnChildren(200);
|
||||
waitOnChildren(WAIT_FOR_CHILD_MSECS);
|
||||
|
||||
// ask more firmly
|
||||
QMutableListIterator<QProcess*> i(_childProcesses);
|
||||
|
@ -101,7 +102,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
}
|
||||
|
||||
// try to give all the children time to shutdown
|
||||
waitOnChildren(200);
|
||||
waitOnChildren(WAIT_FOR_CHILD_MSECS);
|
||||
|
||||
// ask even more firmly
|
||||
QMutableListIterator<QProcess*> j(_childProcesses);
|
||||
|
@ -110,7 +111,7 @@ void AssignmentClientMonitor::stopChildProcesses() {
|
|||
childProcess->terminate();
|
||||
}
|
||||
|
||||
waitOnChildren(200);
|
||||
waitOnChildren(WAIT_FOR_CHILD_MSECS);
|
||||
}
|
||||
|
||||
void AssignmentClientMonitor::aboutToQuit() {
|
||||
|
|
Loading…
Reference in a new issue