don't handle octree query while server shutting down

This commit is contained in:
Stephen Birarda 2015-07-16 14:42:16 -07:00
parent d04c2e4a78
commit 010cbd9934

View file

@ -813,6 +813,7 @@ void OctreeServer::parsePayload() {
}
void OctreeServer::handleOctreeQueryPacket(QSharedPointer<NLPacket> packet, SharedNodePointer senderNode) {
if (!_isFinished) {
// If we got a query packet, then we're talking to an agent, and we
// need to make sure we have it in our nodeList.
auto nodeList = DependencyManager::get<NodeList>();
@ -823,6 +824,7 @@ void OctreeServer::handleOctreeQueryPacket(QSharedPointer<NLPacket> packet, Shar
nodeData->initializeOctreeSendThread(this, senderNode);
}
}
}
void OctreeServer::handleOctreeDataNackPacket(QSharedPointer<NLPacket> packet, SharedNodePointer senderNode) {
// If we got a nack packet, then we're talking to an agent, and we