ask QCoreApplication to quit when PacketTypeStopNode received

This commit is contained in:
Stephen Birarda 2015-05-08 15:22:58 -07:00
parent fe2775ca94
commit 4c93e395ad

View file

@ -264,7 +264,8 @@ void AssignmentClient::readPendingDatagrams() {
if (senderSockAddr.getAddress() == QHostAddress::LocalHost ||
senderSockAddr.getAddress() == QHostAddress::LocalHostIPv6) {
qDebug() << "AssignmentClientMonitor at" << senderSockAddr << "requested stop via PacketTypeStopNode.";
stopAssignmentClient();
QCoreApplication::quit();
} else {
qDebug() << "Got a stop packet from other than localhost.";
}