immediately terminate instead of attempting network stop

This commit is contained in:
Stephen Birarda 2015-05-08 12:10:13 -07:00
parent 69143d8677
commit df6ee4c7a5

View file

@ -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();