Commit c3c9ea8a authored by Thomas Schöps's avatar Thomas Schöps Committed by Thomas Schöps

Only unload plugins after the DUChain shutdown to prevent infinite loop due to...

Only unload plugins after the DUChain shutdown to prevent infinite loop due to non-loaded factories for types
parent d7a7965f
......@@ -427,6 +427,11 @@ void Core::cleanup()
// before unloading language plugins, we need to make sure all parse jobs are done
d->languageController->backgroundParser()->waitForIdle();
DUChain::self()->shutdown();
// Only unload plugins after the DUChain shutdown to prevent issues with non-loaded factories for types
// See: https://bugs.kde.org/show_bug.cgi?id=379669
d->pluginController->cleanup();
d->sessionController->cleanup();
......@@ -435,8 +440,6 @@ void Core::cleanup()
//Disable the functionality of the language controller
d->languageController->cleanup();
DUChain::self()->shutdown();
}
d->m_cleanedUp = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment