mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 16:23:16 +02:00
Avoid killing the updater twice.
This commit is contained in:
parent
7bcc267cb5
commit
4ab90ce49c
2 changed files with 5 additions and 2 deletions
|
@ -52,6 +52,7 @@ MetavoxelSystem::~MetavoxelSystem() {
|
|||
// kill the updater before we delete our network simulation objects
|
||||
_updater->thread()->quit();
|
||||
_updater->thread()->wait();
|
||||
_updater = NULL;
|
||||
}
|
||||
|
||||
void MetavoxelSystem::init() {
|
||||
|
|
|
@ -27,8 +27,10 @@ MetavoxelClientManager::MetavoxelClientManager() :
|
|||
}
|
||||
|
||||
MetavoxelClientManager::~MetavoxelClientManager() {
|
||||
_updater->thread()->quit();
|
||||
_updater->thread()->wait();
|
||||
if (_updater) {
|
||||
_updater->thread()->quit();
|
||||
_updater->thread()->wait();
|
||||
}
|
||||
}
|
||||
|
||||
void MetavoxelClientManager::init() {
|
||||
|
|
Loading…
Reference in a new issue