mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 03:22:09 +02:00
Make sure the send thread terminates before delete
This commit is contained in:
parent
d62dde1ab8
commit
8dd18fbe62
1 changed files with 1 additions and 0 deletions
|
@ -1292,6 +1292,7 @@ void OctreeServer::aboutToFinish() {
|
|||
for (auto& it : _sendThreads) {
|
||||
auto& sendThread = *it.second;
|
||||
sendThread.setIsShuttingDown();
|
||||
sendThread.terminate();
|
||||
}
|
||||
|
||||
// Clear will destruct all the unique_ptr to OctreeSendThreads which will call the GenericThread's dtor
|
||||
|
|
Loading…
Reference in a new issue