Merge pull request #12691 from huffman/fix/oven-exit-crash

Fix crashes on exit because of ResourceManager thread destruction
This commit is contained in:
Stephen Birarda 2018-03-21 11:56:06 -07:00 committed by GitHub
commit e05ee55495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,8 @@ Oven::Oven() {
}
Oven::~Oven() {
DependencyManager::get<ResourceManager>()->cleanup();
// quit all worker threads and wait on them
for (auto& thread : _workerThreads) {
thread->quit();