History

Fix for crash on exit.

Andrzej Kapolka committed 12 years ago

Commit 7bcc2671 parent 15f8b302 files · +8 −0Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 2 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+6−0
@@ -48,6 +48,12 @@ MetavoxelSystem::NetworkSimulation::NetworkSimulation(float dropRate, float repe · 47 unmodified lines
4848 bandwidthLimit(bandwidthLimit) {
4949 }
5050
51+MetavoxelSystem::~MetavoxelSystem() {
52+ // kill the updater before we delete our network simulation objects
53+ _updater->thread()->quit();
54+ _updater->thread()->wait();
55+}
56+
5157 void MetavoxelSystem::init() {
5258 MetavoxelClientManager::init();
5359 DefaultMetavoxelRendererImplementation::init();