mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
Merge pull request #12691 from huffman/fix/oven-exit-crash
Fix crashes on exit because of ResourceManager thread destruction
This commit is contained in:
commit
e05ee55495
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ Oven::Oven() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Oven::~Oven() {
|
Oven::~Oven() {
|
||||||
|
DependencyManager::get<ResourceManager>()->cleanup();
|
||||||
|
|
||||||
// quit all worker threads and wait on them
|
// quit all worker threads and wait on them
|
||||||
for (auto& thread : _workerThreads) {
|
for (auto& thread : _workerThreads) {
|
||||||
thread->quit();
|
thread->quit();
|
||||||
|
|
Loading…
Reference in a new issue