mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:02:57 +02:00
moved stopTrackingThread() to setIsShuttingDown() to reduce chance of object conflict
This commit is contained in:
parent
c3aab7337f
commit
bc68ed1300
1 changed files with 1 additions and 1 deletions
|
@ -45,12 +45,12 @@ OctreeSendThread::~OctreeSendThread() {
|
||||||
qDebug() << qPrintable(safeServerName) << "server [" << _myServer << "]: client disconnected "
|
qDebug() << qPrintable(safeServerName) << "server [" << _myServer << "]: client disconnected "
|
||||||
"- ending sending thread [" << this << "]";
|
"- ending sending thread [" << this << "]";
|
||||||
OctreeServer::clientDisconnected();
|
OctreeServer::clientDisconnected();
|
||||||
OctreeServer::stopTrackingThread(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OctreeSendThread::setIsShuttingDown() {
|
void OctreeSendThread::setIsShuttingDown() {
|
||||||
QMutexLocker locker(&_processLock); // this will cause us to wait till the process loop is complete
|
QMutexLocker locker(&_processLock); // this will cause us to wait till the process loop is complete
|
||||||
_isShuttingDown = true;
|
_isShuttingDown = true;
|
||||||
|
OctreeServer::stopTrackingThread(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue