mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 21:15:07 +02:00
Make variable name more obvious
This commit is contained in:
parent
b4dc3b1b47
commit
a655557af0
1 changed files with 5 additions and 3 deletions
|
@ -1173,7 +1173,8 @@ void OctreeServer::nodeKilled(SharedNodePointer node) {
|
||||||
// Shutdown send thread
|
// Shutdown send thread
|
||||||
auto it = _sendThreads.find(node->getUUID());
|
auto it = _sendThreads.find(node->getUUID());
|
||||||
if (it != _sendThreads.end()) {
|
if (it != _sendThreads.end()) {
|
||||||
it->second->setIsShuttingDown();
|
auto& sendThread = *it->second;
|
||||||
|
sendThread.setIsShuttingDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
// calling this here since nodeKilled slot in ReceivedPacketProcessor can't be triggered by signals yet!!
|
// calling this here since nodeKilled slot in ReceivedPacketProcessor can't be triggered by signals yet!!
|
||||||
|
@ -1217,8 +1218,9 @@ void OctreeServer::aboutToFinish() {
|
||||||
|
|
||||||
// Shut down all the send threads
|
// Shut down all the send threads
|
||||||
for (auto it = _sendThreads.begin(); it != _sendThreads.end(); ++it) {
|
for (auto it = _sendThreads.begin(); it != _sendThreads.end(); ++it) {
|
||||||
it->second->disconnect(this); // Disconnect so that removeSendThread doesn't get called later
|
auto& sendThread = *it->second;
|
||||||
it->second->setIsShuttingDown();
|
sendThread.disconnect(this); // Disconnect so that removeSendThread doesn't get called later
|
||||||
|
sendThread.setIsShuttingDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait on all send threads to be done before continuing
|
// Wait on all send threads to be done before continuing
|
||||||
|
|
Loading…
Reference in a new issue