mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +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 "
|
||||
"- 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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue