Unnecessary shutdown (Already shutting down)

This commit is contained in:
Atlante45 2015-12-16 15:56:22 -08:00
parent b709c8162c
commit 2c8be15e66

View file

@ -897,8 +897,6 @@ void OctreeServer::handleOctreeQueryPacket(QSharedPointer<ReceivedMessage> messa
if (it == _sendThreads.end()) {
_sendThreads.emplace(senderNode->getUUID(), createSendThread(senderNode));
} else if (it->second->isShuttingDown()) {
auto& sendThread = *it->second;
sendThread.setIsShuttingDown();
_sendThreads.erase(it); // Remove right away and wait on thread to be
_sendThreads.emplace(senderNode->getUUID(), createSendThread(senderNode));