mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-25 01:40:57 +00:00
fix: synchronize lifecycle hook shutdown with active dispatches
This commit is contained in:
@@ -135,7 +135,8 @@ void PluginManager::shutdown()
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": PluginManager shutdown enter";
|
||||
|
||||
// Detach the libslic3r hooks first so nothing dispatches into Python while (or after) plugins
|
||||
// unload. Callers stop background slicing before this.
|
||||
// unload. The lifecycle-event hook also drains callbacks already in progress before returning;
|
||||
// the remaining hook seams retain their existing shutdown requirements.
|
||||
plugin_hooks::uninstall();
|
||||
|
||||
// Reject new plugin loads before we drain.
|
||||
|
||||
Reference in New Issue
Block a user