mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:43:35 +02:00
immediately terminate instead of attempting network stop
This commit is contained in:
parent
69143d8677
commit
df6ee4c7a5
1 changed files with 1 additions and 11 deletions
|
@ -85,17 +85,7 @@ void AssignmentClientMonitor::waitOnChildren(int msecs) {
|
|||
void AssignmentClientMonitor::stopChildProcesses() {
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
|
||||
nodeList->eachNode([&](const SharedNodePointer& node) {
|
||||
qDebug() << "asking child" << node->getUUID() << "to exit.";
|
||||
node->activateLocalSocket();
|
||||
QByteArray diePacket = byteArrayWithPopulatedHeader(PacketTypeStopNode);
|
||||
nodeList->writeUnverifiedDatagram(diePacket, *node->getActiveSocket());
|
||||
});
|
||||
|
||||
// try to give all the children time to shutdown
|
||||
waitOnChildren(WAIT_FOR_CHILD_MSECS);
|
||||
|
||||
// ask more firmly
|
||||
// ask child processes to terminate
|
||||
QMutableListIterator<QProcess*> i(_childProcesses);
|
||||
while (i.hasNext()) {
|
||||
QProcess* childProcess = i.next();
|
||||
|
|
Loading…
Reference in a new issue