Fix crashes on exit because of ResourceManager thread destruction

This commit is contained in:
Ryan Huffman 2018-03-21 10:19:44 -07:00
parent f5f4e2a780
commit 00aa564d84

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();