Skip to content

Commit

Permalink
fix: fix unload #134
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed May 11, 2024
1 parent 909f42b commit b58cc1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lse/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ ll::Expected<> PluginManager::unload(std::string_view name) {
#else
scriptEngine.destroy(); // TODO: use unique_ptr to manage the engine.
#endif
erasePlugin(name);

return {};
} catch (const std::exception& e) {
return ll::makeStringError("Failed to unload plugin {}: {}"_tr(name, e.what()));
Expand Down

0 comments on commit b58cc1d

Please sign in to comment.