wait on thread pool threads

This commit is contained in:
SamGondelman 2019-06-26 15:25:17 -07:00
parent b96db7517c
commit 5937a219dd

View file

@ -2712,6 +2712,7 @@ void Application::cleanupBeforeQuit() {
// Clear any queued processing (I/O, FBX/OBJ/Texture parsing)
QThreadPool::globalInstance()->clear();
QThreadPool::globalInstance()->waitForDone();
DependencyManager::destroy<RecordingScriptingInterface>();