History

handle cleanup of local injection, volume

Stephen Birarda committed 12 years ago

Commit 0e30c651 parent 83529c17 files · +60 −25Browse files

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

Unified · Split

interface/src/Application.cpp+4−5
@@ -453,23 +453,22 @@ Application::~Application() { · 452 unmodified lines
453453 // ask the datagram processing thread to quit and wait until it is done
454454 _nodeThread->quit();
455455 _nodeThread->wait();
456+
457+ // kill any audio injectors that are still around
458+ AudioScriptingInterface::getInstance().stopAllInjectors();
456459
457460 // stop the audio process
458461 QMetaObject::invokeMethod(&_audio, "stop");
459−
462+
460463 // ask the audio thread to quit and wait until it is done
461464 _audio.thread()->quit();
462465 _audio.thread()->wait();
463−
464− // kill any audio injectors that are still around
465− AudioScriptingInterface::getInstance().stopAllInjectors();
466466
467467 _octreeProcessor.terminate();
468468 _voxelHideShowThread.terminate();
469469 _voxelEditSender.terminate();
470470 _entityEditSender.terminate();
471471
472−
473472 VoxelTreeElement::removeDeleteHook(&_voxels); // we don't need to do this processing on shutdown
474473 Menu::getInstance()->deleteLater();
475474

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t