moved stopTrackingThread() to setIsShuttingDown() to reduce chance of object conflict

This commit is contained in:
ZappoMan 2014-03-26 11:59:55 -07:00
parent c3aab7337f
commit bc68ed1300

View file

@ -45,12 +45,12 @@ OctreeSendThread::~OctreeSendThread() {
qDebug() << qPrintable(safeServerName) << "server [" << _myServer << "]: client disconnected "
"- ending sending thread [" << this << "]";
OctreeServer::clientDisconnected();
OctreeServer::stopTrackingThread(this);
}
void OctreeSendThread::setIsShuttingDown() {
QMutexLocker locker(&_processLock); // this will cause us to wait till the process loop is complete
_isShuttingDown = true;
OctreeServer::stopTrackingThread(this);
}