mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
wait for audio thread to quit on application exit
This commit is contained in:
parent
0e3cb11863
commit
6bbd944b6a
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
|||
}
|
||||
|
||||
Application::~Application() {
|
||||
// ask the audio thread to quit and wait until it is done
|
||||
_audio.thread()->quit();
|
||||
_audio.thread()->wait();
|
||||
|
||||
storeSizeAndPosition();
|
||||
NodeList::getInstance()->removeHook(&_voxels);
|
||||
NodeList::getInstance()->removeHook(this);
|
||||
|
|
Loading…
Reference in a new issue